diff --git a/src/db/migration/V20181022_1725__mantis12468.sql b/src/db/migration/V20181022_1725__mantis12468.sql index 555c200c9..8819a9706 100644 --- a/src/db/migration/V20181022_1725__mantis12468.sql +++ b/src/db/migration/V20181022_1725__mantis12468.sql @@ -2,6 +2,6 @@ declare column_exists exception; pragma exception_init (column_exists , -01430); begin - execute immediate 'ALTER TABLE CAJA ADD (INTEGRADOTOTVS NUMBER(1,0))'; + execute immediate 'ALTER TABLE CAJA ADD (INTEGRADOTOTVS NUMBER(1,0)'; exception when column_exists then null; end; \ No newline at end of file diff --git a/src/db/migration/V20181029_1100__mantis12479.sql b/src/db/migration/V20181029_1100__mantis12479.sql new file mode 100644 index 000000000..ee37f1eb0 --- /dev/null +++ b/src/db/migration/V20181029_1100__mantis12479.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EMPRESA ADD INDIMPEMBARQDESEMBARQCUPOM NUMBER(1,0) DEFAULT 0 NOT NULL ENABLE'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20181022_1725__mantis12468.sql b/src/db/postgresql/migration/V20181022_1725__mantis12468.sql index 555c200c9..8819a9706 100644 --- a/src/db/postgresql/migration/V20181022_1725__mantis12468.sql +++ b/src/db/postgresql/migration/V20181022_1725__mantis12468.sql @@ -2,6 +2,6 @@ declare column_exists exception; pragma exception_init (column_exists , -01430); begin - execute immediate 'ALTER TABLE CAJA ADD (INTEGRADOTOTVS NUMBER(1,0))'; + execute immediate 'ALTER TABLE CAJA ADD (INTEGRADOTOTVS NUMBER(1,0)'; exception when column_exists then null; end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20181029_1100__mantis12479.sql b/src/db/postgresql/migration/V20181029_1100__mantis12479.sql new file mode 100644 index 000000000..ee37f1eb0 --- /dev/null +++ b/src/db/postgresql/migration/V20181029_1100__mantis12479.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EMPRESA ADD INDIMPEMBARQDESEMBARQCUPOM NUMBER(1,0) DEFAULT 0 NOT NULL ENABLE'; + exception when column_exists then null; +end; \ No newline at end of file