diff --git a/src/db/migration/V20170119_1058__mantis8360.sql b/src/db/migration/V20170119_1058__mantis8360.sql index 78c1744d6..5e982dcf0 100644 --- a/src/db/migration/V20170119_1058__mantis8360.sql +++ b/src/db/migration/V20170119_1058__mantis8360.sql @@ -2,7 +2,7 @@ declare object_exists exception; pragma exception_init (object_exists , -00955); begin -CREATE TABLE +execute immediate 'CREATE TABLE EMBARCADA_LIMITES ( @@ -13,11 +13,12 @@ CREATE TABLE AVISO_BILHETE NUMBER(15) NOT NULL, AVISO_DIV NUMBER(15) NOT NULL, AVISO_DIAS NUMBER(15) NOT NULL - ); + );' exception when object_exists then null; end; begin + execute immediate ' 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