diff --git a/src/db/migration/V20200602_0924__mantis19444.sql b/src/db/migration/V20200602_0924__mantis19444.sql new file mode 100644 index 000000000..fd1aa7e24 --- /dev/null +++ b/src/db/migration/V20200602_0924__mantis19444.sql @@ -0,0 +1,15 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CATEGORIA_DESCUENTO ADD (QTDE_LIMITE_NAO_EMBARQUE NUMBER(5,0), INDCLIENTEPCD NUMBER(1,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CLIENTE ADD (FECBLOQUEIOPCD DATE, INDCLIENTEPCD NUMBER(1,0))'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20200602_0924__mantis19444.sql b/src/db/postgresql/migration/V20200602_0924__mantis19444.sql new file mode 100644 index 000000000..67ec75d6c --- /dev/null +++ b/src/db/postgresql/migration/V20200602_0924__mantis19444.sql @@ -0,0 +1,13 @@ +DO $$ +BEGIN + ALTER TABLE CATEGORIA_DESCUENTO ADD (QTDE_LIMITE_NAO_EMBARQUE NUMBER(5,0), INDCLIENTEPCD BOOLEAN); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; +/ +DO $$ +BEGIN + ALTER TABLE CLIENTE ADD (FECBLOQUEIOPCD DATE, INDCLIENTEPCD BOOLEAN); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file