From f39fd38d4142ba5b2be09c1da355fd3a94cda3cb Mon Sep 17 00:00:00 2001 From: walace Date: Tue, 11 Oct 2022 14:41:31 +0000 Subject: [PATCH] fixes bug#AL-1521 dev:julio qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@114684 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20221011_1120_AL1521.sql | 9 +++++++++ src/db/postgresql/migration/V20221011_1120_AL1521.sql | 5 +++++ 2 files changed, 14 insertions(+) create mode 100644 src/db/migration/V20221011_1120_AL1521.sql create mode 100644 src/db/postgresql/migration/V20221011_1120_AL1521.sql 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