From 76c25c7ff63e82eeb8aba28730aac3af42d9e8f9 Mon Sep 17 00:00:00 2001 From: "bruno.neves" Date: Fri, 26 May 2017 22:31:21 +0000 Subject: [PATCH] =?UTF-8?q?fix=20bug=20#0009037=20-=20corrigido=20duplica?= =?UTF-8?q?=C3=A7=C3=A3o=20de=20pre=C3=A7o=20na=20gera=C3=A7=C3=A3o=20do?= =?UTF-8?q?=20pre=C3=A7o=20do=20pedagio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@69374 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20170525_1803__mantis9037.sql | 69 +++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 src/db/migration/V20170525_1803__mantis9037.sql diff --git a/src/db/migration/V20170525_1803__mantis9037.sql b/src/db/migration/V20170525_1803__mantis9037.sql new file mode 100644 index 000000000..cfb7db4cf --- /dev/null +++ b/src/db/migration/V20170525_1803__mantis9037.sql @@ -0,0 +1,69 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); + + begin + execute immediate 'ALTER TABLE PRECIO_FIXO_PEDAGIO RENAME COLUMN PRECIOFIXO_ID TO PRECIOFIXOPEDAGIO_ID'; + end ; +/ + +declare + object_exists exception; + pragma exception_init (object_exists , -00955); + + begin + execute immediate 'ALTER TABLE PRECIO_FIXO_PEDAGIO RENAME COLUMN PRACA_PEDAGIO_ID TO PRACAPEDAGIO_ID'; + end; +/ + +declare + object_exists exception; + pragma exception_init (object_exists , -00955); + + begin + execute immediate 'ALTER TABLE PRECIO_FIXO_PEDAGIO RENAME COLUMN ORGAO_CONCEDENTE_ID TO ORGAOCONCEDENTE_ID'; + end ; +/ + +declare + object_exists exception; + pragma exception_init (object_exists , -00955); + + begin + execute immediate 'ALTER TABLE PRECIO_FIXO_PEDAGIO RENAME COLUMN CLASSE_SERVICO_ID TO CLASSESERVICO_ID'; + end; +/ + +declare + object_exists exception; + pragma exception_init (object_exists , -00955); + + begin + execute immediate 'ALTER TABLE PRECIO_FIXO_PEDAGIO RENAME COLUMN VALOR_FIXO TO VALORFIXO'; + end; +/ + +declare + object_exists exception; + pragma exception_init (object_exists , -00955); + + begin + execute immediate 'ALTER TABLE PRECIO_FIXO_PEDAGIO ADD (ACTIVO NUMBER(1))'; + end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); + + begin + execute immediate 'ALTER TABLE PRECIO_FIXO_PEDAGIO ADD (FECMODIF DATE)'; + end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); + + begin + execute immediate 'ALTER TABLE PRECIO_FIXO_PEDAGIO ADD (USUARIO_ID NUMBER(7))'; + end ; +/ \ No newline at end of file