diff --git a/src/db/migration/V20221011_1120_AL1521.sql b/src/db/migration/V20221011_1120_AL1521.sql new file mode 100644 index 000000000..6d3538c69 --- /dev/null +++ b/src/db/migration/V20221011_1120_AL1521.sql @@ -0,0 +1,9 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -02443); +begin + execute immediate + 'ALTER TABLE EMPRESA_EMAIL_ECOMERCE DROP CONSTRAINT FK_OPERACAO_ECOMERCE_EMAIL'; + exception when object_exists then null; +end; + diff --git a/src/db/postgresql/migration/V20221011_1120_AL1521.sql b/src/db/postgresql/migration/V20221011_1120_AL1521.sql new file mode 100644 index 000000000..1baf4c6a8 --- /dev/null +++ b/src/db/postgresql/migration/V20221011_1120_AL1521.sql @@ -0,0 +1,5 @@ +DO $$ +BEGIN + ALTER TABLE EMPRESA_EMAIL_ECOMERCE DROP CONSTRAINT FK_OPERACAO_ECOMERCE_EMAIL; +END +$$; \ No newline at end of file