Correção exceção Flyway.
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@71100 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
9c53da1443
commit
6a486cb3f1
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
|
@ -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)';
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue