Merge pull request 'fixes bug#al-2765' (!66) from AL-2765 into master

Reviewed-on: utilidades/Flyway#66
Reviewed-by: Valdir Cordeiro <valdir.cordeiro@totvs.com.br>
master
aristides 2023-09-01 00:20:12 +00:00
commit caf2b8b5d4
2 changed files with 26 additions and 1 deletions

View File

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

View File

@ -0,0 +1,25 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'CREATE TABLE ORGAO_COMPROVANTECUSTOMIZADO
(
"ORGAOCOMPROVANTECUSTOMIZADO_ID" NUMBER(7,0) NOT NULL ENABLE,
"ORGAOCONCEDENTE_ID" NUMBER(7,0),
"TIPOCOMPROVANTE_ID" NUMBER(3,0),
"CVE_TIPOCOMPROVANTE" VARCHAR2(50 BYTE),
"TXTCOMPROVANTECUSTOMIZADO" CLOB,
"USUARIO_ID" NUMBER(7,0),
"ACTIVO" NUMBER(1,0),
"FECMODIF" DATE )
';
exception when object_exists then null;
end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'CREATE SEQUENCE "ORGAO_COMPROVANTECUSTOMIZADO_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE';
exception when object_exists then null;
end;