Adição do cadastro de Alias de classe bug#AL-3857

master
Fabio 2024-05-21 18:45:31 -03:00
parent f404ea16ac
commit ca4beabf65
2 changed files with 26 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.44.0</version> <version>1.45.0</version>
<distributionManagement> <distributionManagement>
<repository> <repository>

View File

@ -0,0 +1,25 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
begin
execute immediate 'CREATE TABLE ALIAS_CLASSE_SERVICO
(
"ALIASCLASSE_ID" NUMBER(7,0) NOT NULL ENABLE,
"CLASSE_ID" NUMBER(7,0),
"ALIAS_ID" NUMBER(7,0),
"ORGAOCONCEDENTE_ID" NUMBER(7,0),
"MENSAGEM" VARCHAR2(150) NULL,
"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 "ALIAS_CLASSE_SEQ" MINVALUE 1 MAXVALUE 9999999999999999999999999999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE';
exception when object_exists then null;
end;