diff --git a/src/db/migration/V20210111_1423__mantis21013.sql b/src/db/migration/V20210111_1423__mantis21013.sql new file mode 100644 index 000000000..2cb8e91a7 --- /dev/null +++ b/src/db/migration/V20210111_1423__mantis21013.sql @@ -0,0 +1,8 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EMPRESA ADD (CPFCNPJ_AUTDOWNLOAD VARCHAR2(14))'; + exception when column_exists then null; +end; +/ diff --git a/src/db/postgresql/migration/V20210111_1423__mantis21013.sql b/src/db/postgresql/migration/V20210111_1423__mantis21013.sql new file mode 100644 index 000000000..5032ff4bf --- /dev/null +++ b/src/db/postgresql/migration/V20210111_1423__mantis21013.sql @@ -0,0 +1,8 @@ +DO $$ +BEGIN + ALTER TABLE EMPRESA ADD (CPFCNPJ_AUTDOWNLOAD VARCHAR2(14)); + + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; +