diff --git a/src/db/migration/V20170119_1058__mantis8360.sql b/src/db/migration/V20170119_1058__mantis8360.sql index 906c1c245..78c1744d6 100644 --- a/src/db/migration/V20170119_1058__mantis8360.sql +++ b/src/db/migration/V20170119_1058__mantis8360.sql @@ -1,3 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin CREATE TABLE EMBARCADA_LIMITES ( @@ -10,6 +14,10 @@ CREATE TABLE AVISO_DIV NUMBER(15) NOT NULL, AVISO_DIAS NUMBER(15) NOT NULL ); - + exception when object_exists then null; +end; +begin CREATE SEQUENCE EMBARCADA_LIMITES_SEQ INCREMENT BY 1 START WITH 1 MAXVALUE 9999999999999999999999999999 -MINVALUE 1 NOCYCLE CACHE 20 NOORDER; +MINVALUE 1 NOCYCLE CACHE 20 NOORDER; +exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170203_0930__mantis8360.sql b/src/db/migration/V20170203_0930__mantis8360.sql new file mode 100644 index 000000000..472a62234 --- /dev/null +++ b/src/db/migration/V20170203_0930__mantis8360.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE EMBARCADA_SINCRONISMO ADD (FECHADO NUMBER(1))'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170213_1430__mantis8360.sql b/src/db/migration/V20170213_1430__mantis8360.sql new file mode 100644 index 000000000..1efe07d15 --- /dev/null +++ b/src/db/migration/V20170213_1430__mantis8360.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'ALTER TABLE VENDA_EMBARCADA ADD (boletoId NUMBER(20))'; + exception when object_exists then null; +end; \ No newline at end of file