bug#23635

Campo no banco não pode ter valor default

dev:wallace
qua:junia

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@110350 d1611594-4594-4d17-8e1d-87c2c4800839
master
gleimar 2022-01-13 19:25:25 +00:00
parent 5d5f35c84a
commit ee62f5c606
1 changed files with 8 additions and 1 deletions

View File

@ -19,6 +19,13 @@ declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE EMPRESA ADD INDCHECKINBLOQUEADOREMARCACAO NUMBER(1,0) DEFAULT 0 NOT NULL';
execute immediate 'ALTER TABLE EMPRESA ADD INDCHECKINBLOQUEADOREMARCACAO NUMBER(1,0)';
exception when column_exists then null;
end;
/
declare
begin
execute immediate 'UPDATE EMPRESA SET INDCHECKINBLOQUEADOREMARCACAO = 0 WHERE INDCHECKINBLOQUEADOREMARCACAO IS NULL';
exception when others then null;
end;