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-87c2c4800839master
parent
5d5f35c84a
commit
ee62f5c606
|
@ -19,6 +19,13 @@ declare
|
||||||
column_exists exception;
|
column_exists exception;
|
||||||
pragma exception_init (column_exists , -01430);
|
pragma exception_init (column_exists , -01430);
|
||||||
begin
|
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;
|
exception when column_exists then null;
|
||||||
end;
|
end;
|
||||||
|
/
|
||||||
|
declare
|
||||||
|
|
||||||
|
begin
|
||||||
|
execute immediate 'UPDATE EMPRESA SET INDCHECKINBLOQUEADOREMARCACAO = 0 WHERE INDCHECKINBLOQUEADOREMARCACAO IS NULL';
|
||||||
|
exception when others then null;
|
||||||
|
end;
|
||||||
|
|
Loading…
Reference in New Issue