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