fixes bug#11645

dev:lucas
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@84258 d1611594-4594-4d17-8e1d-87c2c4800839
master
claudio 2018-08-15 00:19:18 +00:00
parent d33cea07dd
commit c8d2ac37c3
2 changed files with 4 additions and 8 deletions

View File

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

View File

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