fixes bug #9472 commit 2 de 2
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@74055 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
8e9723110e
commit
059cf64f6c
|
@ -0,0 +1,15 @@
|
|||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -01430);
|
||||
begin
|
||||
execute immediate 'ALTER TABLE CLIENTE_DESCUENTO ADD (INDVENDER1PORCORRIDA NUMBER(1) DEFAULT 0 NOT NULL )';
|
||||
exception when object_exists then null;
|
||||
end;
|
||||
/
|
||||
declare
|
||||
object_exists exception;
|
||||
pragma exception_init (object_exists , -00001);
|
||||
begin
|
||||
execute immediate 'UPDATE CLIENTE_DESCUENTO SET INDVENDER1PORCORRIDA = 0';
|
||||
exception when object_exists then null;
|
||||
end;
|
Loading…
Reference in New Issue