Merge pull request 'Acertando o script feat bug#AL-4273' (!187) from AL-4273 into master

Reviewed-on: utilidades/Flyway#187
Reviewed-by: pinheiro <valdevir@rjconsultores.com.br>
master
Valdir Cordeiro 2024-08-28 17:51:16 +00:00
commit 4b17251f54
2 changed files with 32 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId> <groupId>br.com.rjconsultores</groupId>
<artifactId>Flyway</artifactId> <artifactId>Flyway</artifactId>
<version>1.88.1</version> <version>1.88.2</version>
<distributionManagement> <distributionManagement>
<repository> <repository>

View File

@ -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;
/