diff --git a/src/db/migration/V20190211_1030__mantis12717.sql b/src/db/migration/V20190211_1030__mantis12717.sql new file mode 100644 index 000000000..7f7f3948e --- /dev/null +++ b/src/db/migration/V20190211_1030__mantis12717.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE TAXPOLV ADD (HORACANCELAMENTO VARCHAR2(6 BYTE))'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190211_1030__mantis12717.sql b/src/db/postgresql/migration/V20190211_1030__mantis12717.sql new file mode 100644 index 000000000..68d9ba31d --- /dev/null +++ b/src/db/postgresql/migration/V20190211_1030__mantis12717.sql @@ -0,0 +1,5 @@ +DO $$ +BEGIN + ALTER TABLE TAXPOLV ADD HORACANCELAMENTO VARCHAR(6); + EXCEPTION WHEN duplicate_column THEN NULL; +$$; \ No newline at end of file