diff --git a/pom.xml b/pom.xml index b501c199d..cbee37220 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.88.1 + 1.88.2 diff --git a/src/db/migration/V20240828_1143__AL-4273.sql b/src/db/migration/V20240828_1143__AL-4273.sql new file mode 100644 index 000000000..df6b1d7a5 --- /dev/null +++ b/src/db/migration/V20240828_1143__AL-4273.sql @@ -0,0 +1,31 @@ +declare + table_exists exception; + pragma exception_init (table_exists , -00955); +begin + execute immediate + 'CREATE TABLE COMPROVANTE_PASSAGEM ( + COMPROVANTEPASSAGEM_ID NUMBER(7,0) NOT NULL ENABLE, + EMPRESA_ID NUMBER(7,0), + NUMOPERACION VARCHAR2(36 BYTE), + DOCUMENTO BLOB, + ACTIVO NUMBER(1,0), + FECMODIF DATE, + USUARIO_ID NUMBER(7,0), + PRIMARY KEY (COMPROVANTEPASSAGEM_ID), + FOREIGN KEY (EMPRESA_ID) + REFERENCES EMPRESA (EMPRESA_ID) ENABLE + ) '; + + exception when table_exists then null; +end; +/ + +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE SEQUENCE COMPROVANTE_PASSAGEM_SEQ'; + exception when object_exists then null; +end; +/ \ No newline at end of file