Correção exceção Flyway.

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@71100 d1611594-4594-4d17-8e1d-87c2c4800839
master
valdevir 2017-07-06 22:42:20 +00:00
parent 9c53da1443
commit 6a486cb3f1
5 changed files with 7 additions and 7 deletions

View File

@ -8,7 +8,7 @@ end;
/
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
pragma exception_init (object_exists , -01442);
begin
execute immediate 'ALTER TABLE USUARIO MODIFY (TEMPODEVOLUCAOPASSAGEM DEFAULT 0 NOT NULL)';
exception when object_exists then null;

View File

@ -1,6 +1,6 @@
declare
object_exists exception;
pragma exception_init (object_exists , -00955);
pragma exception_init (object_exists , -01430);
begin
execute immediate 'ALTER TABLE EVENTO_EXTRA ADD (SERIEIMPFISCAL VARCHAR2(6))';
exception when object_exists then null;

View File

@ -1,7 +1,7 @@
declare
object_exists exception;
pragma exception_init (object_exists , -01430);
ja_existe exception;
pragma exception_init (ja_existe , -00001);
begin
execute immediate 'INSERT INTO USUARIO (USUARIO_ID, NOMBUSUARIO, CVEUSUARIO, activo) VALUES (-1, ''TODOS'', ''TODOS'', 1)';
exception when object_exists then null;
exception when ja_existe then null;
end;

View File

@ -16,7 +16,7 @@ end;
declare
object_exists exception;
pragma exception_init (object_exists , -01451);
pragma exception_init (object_exists , -01442);
begin
execute immediate 'ALTER TABLE CATEGORIA_DESCUENTO MODIFY (INDSEGUNDA NOT NULL)';
execute immediate 'ALTER TABLE CATEGORIA_DESCUENTO MODIFY (INDTERCA NOT NULL)';

View File

@ -1,6 +1,6 @@
declare
object_exists exception;
pragma exception_init (object_exists , -01451);
pragma exception_init (object_exists , -01430);
begin
execute immediate 'ALTER TABLE USUARIO ADD (INDEXPIRASENHA NUMBER(1) DEFAULT 0 NOT NULL)';
exception when object_exists then null;