diff --git a/src/db/migration/V20220908_1100__jiraAL1340.sql b/src/db/migration/V20220908_1100__jiraAL1340.sql new file mode 100644 index 000000000..52c619ae8 --- /dev/null +++ b/src/db/migration/V20220908_1100__jiraAL1340.sql @@ -0,0 +1,16 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CAJA ADD (SEQUENCIAROD NUMBER(10))'; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE BOLETO ADD (SEQUENCIAROD NUMBER(10))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20220908_1630__jira1340.sql b/src/db/postgresql/migration/V20220908_1630__jira1340.sql new file mode 100644 index 000000000..413d11b86 --- /dev/null +++ b/src/db/postgresql/migration/V20220908_1630__jira1340.sql @@ -0,0 +1,17 @@ +DO $$ +BEGIN + ALTER TABLE BOLETO ADD SEQUENCIARODTAXACURITIBA NUMERIC(10) ; + + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; + +/ + +DO $$ +BEGIN + ALTER TABLE CAJA ADD SEQUENCIARODTAXACURITIBA NUMERIC(10) ; + + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file