0012675: Criar Localidade

fixes bug#12675
dev:Emerson
qua:Jose

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@87136 d1611594-4594-4d17-8e1d-87c2c4800839
master
fabricio.oliveira 2018-11-19 16:38:08 +00:00
parent aadbe53eab
commit f840a0cc5e
2 changed files with 13 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 PARADA MODIFY (TIPOPARADA_ID NUMBER(7,0))';
exception when column_exists then null;
end;

View File

@ -0,0 +1,6 @@
DO $$
BEGIN
ALTER TABLE PARADA MODIFY (TIPOPARADA_ID NUMERIC(7,0));
EXCEPTION WHEN others THEN NULL;
END
$$;