fixes bug#11829
dev:lucas qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@84125 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
5884cf3124
commit
3ac44d9049
|
@ -2,6 +2,8 @@ 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 INDUTILIZARESOLUCAO NUMBER(1,0) DEFAULT 0';
|
execute immediate 'ALTER TABLE EMPRESA ADD INDUTILIZARESOLUCAO NUMBER(1,0)';
|
||||||
exception when column_exists then null;
|
exception when column_exists then null;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
UPDATE EMPRESA SET INDUTILIZARESOLUCAO = 0 WHERE INDUTILIZARESOLUCAO IS NULL;
|
|
@ -2,6 +2,8 @@ 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 INDUTIFOLIOLOCAPREPAGOABERTO NUMBER(1,0) DEFAULT 0';
|
execute immediate 'ALTER TABLE EMPRESA ADD INDUTIFOLIOLOCAPREPAGOABERTO NUMBER(1,0)';
|
||||||
exception when column_exists then null;
|
exception when column_exists then null;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
UPDATE EMPRESA SET INDUTIFOLIOLOCAPREPAGOABERTO = 0 WHERE INDUTIFOLIOLOCAPREPAGOABERTO IS NULL;
|
Loading…
Reference in New Issue