20260809_478_edge_gateway_security_cleanup.py 547 B

12345678910111213141516171819202122
  1. """Remove legacy edge evidence function overloads without restoring them."""
  2. from alembic import op
  3. revision = "20260809_478"
  4. down_revision = "20260809_477"
  5. branch_labels = None
  6. depends_on = None
  7. def upgrade() -> None:
  8. op.execute(r"""
  9. DROP FUNCTION IF EXISTS public.record_edge_gateway_failure(
  10. CHARACTER,UUID,CHARACTER VARYING
  11. );
  12. """)
  13. def downgrade() -> None:
  14. # Deliberately non-restorative: the removed SECURITY DEFINER overload had an
  15. # unsafe search_path and must never be recreated by a rollback.
  16. pass