Files
query-orchestration/internal/database/migrations/00000000000130_add_schema_invariant_triggers.down.sql
Jay Brown 17fc813823 Merged in feature/mutable-metadata1 (pull request #221)
M1, M2 and M3 complete

* M1, M2 and M3 complete

* review changes

* docs

* docs
2026-04-16 23:11:26 +00:00

12 lines
481 B
SQL

-- Rollback migration 130: drop both triggers, then both functions.
-- Triggers must go before their functions or DROP FUNCTION complains
-- about dependent objects.
DROP TRIGGER IF EXISTS trg_prevent_legacy_extraction_on_custom_document
ON documentFieldExtractions;
DROP TRIGGER IF EXISTS trg_prevent_schema_reassignment
ON documents;
DROP FUNCTION IF EXISTS trg_prevent_legacy_extraction_on_custom_document();
DROP FUNCTION IF EXISTS trg_prevent_schema_reassignment();