From 2485210b1d5deab455aafa760ff2c4220717fb5f Mon Sep 17 00:00:00 2001 From: fabio Date: Tue, 8 May 2018 20:20:51 +0000 Subject: [PATCH] bug#11034 dev: Alexandre qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@81680 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20180502_1554__mantis11034.sql | 177 ++++++++++++++++++ 1 file changed, 177 insertions(+) create mode 100644 src/db/migration/V20180502_1554__mantis11034.sql diff --git a/src/db/migration/V20180502_1554__mantis11034.sql b/src/db/migration/V20180502_1554__mantis11034.sql new file mode 100644 index 000000000..c59a7998b --- /dev/null +++ b/src/db/migration/V20180502_1554__mantis11034.sql @@ -0,0 +1,177 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EVENTO_EXTRA ADD (INTEGRADOTOTVS NUMBER(1,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE TIPO_EVENTO_EXTRA ADD (INTEGRADOTOTVS NUMBER(1,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE ORGAO_CONCEDENTE ADD (INTEGRADOTOTVS NUMBER(1,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE VIA ADD (INTEGRADOTOTVS NUMBER(1,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CLASE_SERVICIO ADD (INTEGRADOTOTVS NUMBER(1,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE RUTA ADD (INTEGRADOTOTVS NUMBER(1,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE PUNTO_VENTA ADD (INTEGRADOTOTVS NUMBER(1,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE TARIFA ADD (INTEGRADOTOTVS NUMBER(1,0))'; + exception when column_exists then null; +end; +--USUARIO +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE USUARIO ADD (INTEGRADOTOTVS NUMBER(1,0) )'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE ESQUEMA_CORRIDA ADD (INTEGRADOTOTVS NUMBER(1,0) )'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CORRIDA ADD (INTEGRADOTOTVS NUMBER(1,0) )'; + exception when column_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -01451); +begin + execute immediate 'ALTER TABLE PARADA MODIFY (INTEGRADOTOTVS NULL)'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -01451); +begin + execute immediate 'ALTER TABLE TIPO_PARADA MODIFY (INTEGRADOTOTVS NULL)'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -01451); +begin + execute immediate 'ALTER TABLE ORGAO_CONCEDENTE MODIFY (INTEGRADOTOTVS NULL)'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists, -01451); +begin + execute immediate 'ALTER TABLE VIA MODIFY (INTEGRADOTOTVS NULL)'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists, -01451); +begin + execute immediate 'ALTER TABLE CLASE_SERVICIO MODIFY (INTEGRADOTOTVS NULL)'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -01451); +begin + execute immediate 'ALTER TABLE RUTA MODIFY (INTEGRADOTOTVS NULL)'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -01451); +begin + execute immediate 'ALTER TABLE PUNTO_VENTA MODIFY (INTEGRADOTOTVS NULL)'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -01451); +begin + execute immediate 'ALTER TABLE TARIFA MODIFY (INTEGRADOTOTVS NULL)'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -01451); +begin + execute immediate 'ALTER TABLE USUARIO MODIFY (INTEGRADOTOTVS NULL)'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -01451); +begin + execute immediate 'ALTER TABLE ESQUEMA_CORRIDA MODIFY (INTEGRADOTOTVS NULL)'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -01451); +begin + execute immediate 'ALTER TABLE CORRIDA MODIFY (INTEGRADOTOTVS NULL)'; + exception when object_exists then null; +end; +