correção nos scripts

bug#15545
dev: 
qua: 

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@98314 d1611594-4594-4d17-8e1d-87c2c4800839
master
julio 2019-10-17 20:55:22 +00:00
parent 74711fb630
commit 514d4aa252
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,7 @@
declare
object_exists exception;
pragma exception_init (object_exists , -01430);
begin
execute immediate 'ALTER TABLE CATEGORIA_DESCUENTO MODIFY (INDCUOTANUNCALIBERAR DEFAULT 0)';
exception when object_exists then null;
end;

View File

@ -0,0 +1,6 @@
DO $$
BEGIN
ALTER TABLE CATEGORIA_DESCUENTO MODIFY (INDCUOTANUNCALIBERAR DEFAULT 0);
EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;