diff --git a/src/db/migration/V20190117_1506__mantis13138.sql b/src/db/migration/V20190117_1506__mantis13138.sql new file mode 100644 index 000000000..4aff937f2 --- /dev/null +++ b/src/db/migration/V20190117_1506__mantis13138.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE FECHAMENTO_PARAMGERAL ADD (BOLETO_BANCO_INSTRUCAO VARCHAR2(255))'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190117_1506__mantis13138.sql b/src/db/postgresql/migration/V20190117_1506__mantis13138.sql new file mode 100644 index 000000000..0cfdf24ac --- /dev/null +++ b/src/db/postgresql/migration/V20190117_1506__mantis13138.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE FECHAMENTO_PARAMGERAL ADD (BOLETO_BANCO_INSTRUCAO VARCHAR(255)); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file