fixes bug#22051

qua:
dev:Valdir

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@106531 d1611594-4594-4d17-8e1d-87c2c4800839
master
valdevir 2021-05-05 12:02:28 +00:00
parent ce723db446
commit 5ae4546d98
4 changed files with 59 additions and 0 deletions

View File

@ -0,0 +1,7 @@
declare
object_exists exception;
pragma exception_init (object_exists , -01430);
begin
execute immediate 'ALTER TABLE CATEGORIA_DESCUENTO ADD INDCHECKINAUTOMATICO NUMBER(1)';
exception when object_exists then null;
end;

View File

@ -0,0 +1,23 @@
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE CATEGORIA_RUTA ADD QTD_POLTRONA_AUTORIZADA NUMBER(5,0)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE CATEGORIA_RUTA ADD VALOR_DESCONTO NUMBER(5,0)';
exception when column_exists then null;
end;
/
declare
column_exists exception;
pragma exception_init (column_exists , -01430);
begin
execute immediate 'ALTER TABLE CATEGORIA_RUTA ADD PORCENTAGEM_DESCONTO NUMBER(5,0)';
exception when column_exists then null;
end;

View File

@ -0,0 +1,7 @@
DO $$
BEGIN
ALTER TABLE CATEGORIA_DESCUENTO ADD INDCHECKINAUTOMATICO NUMBER(1);
EXCEPTION
WHEN OTHERS THEN NULL;
END
$$;

View File

@ -0,0 +1,22 @@
DO $$
BEGIN
ALTER TABLE CATEGORIA_RUTA ADD QTD_POLTRONA_AUTORIZADA NUMBER(5)
EXCEPTION
WHEN OTHERS THEN NULL;
END
$$;
/
DO $$
BEGIN
ALTER TABLE CATEGORIA_RUTA ADD VALOR_DESCONTO NUMBER(5)
EXCEPTION
WHEN OTHERS THEN NULL;
END
$$;
/DO $$
BEGIN
ALTER TABLE CATEGORIA_RUTA ADD PORCENTAGEM_DESCONTO NUMBER(5)
EXCEPTION
WHEN OTHERS THEN NULL;
END
$$;