fixes bug #9356
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@71201 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
78ad632ba0
commit
614130b75d
|
@ -0,0 +1,17 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00001);
|
||||
begin
|
||||
execute immediate 'update USUARIO set TEMPODEVOLUCAOPASSAGEM = -1 where TEMPODEVOLUCAOPASSAGEM = 0 OR TEMPODEVOLUCAOPASSAGEM is null';
|
||||
exception when object_exists then null;
|
||||
end;
|
||||
|
||||
/
|
||||
|
||||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -01451);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE USUARIO MODIFY (TEMPODEVOLUCAOPASSAGEM DEFAULT -1 )';
|
||||
exception when object_exists then null;
|
||||
end;
|
Loading…
Reference in New Issue