fixes bug#11476

dev:gleimar
qua:

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@83849 d1611594-4594-4d17-8e1d-87c2c4800839
master
claudio 2018-08-01 22:04:44 +00:00
parent aab047fb5f
commit 78e4db7801
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,7 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE EMPRESA ADD INDUTILIZARESOLUCAO NUMBER(1,0) DEFAULT 0';
exception when column_exists then null;
end;

View File

@ -0,0 +1,7 @@
DO $$
BEGIN
ALTER TABLE EMPRESA ADD INDUTILIZARESOLUCAO NUMERIC(1) DEFAULT 0;
EXCEPTION WHEN duplicate_column THEN NULL;
END
$$;