From 8c569e9892811fa8f36c16d2be8f0bcd248119b3 Mon Sep 17 00:00:00 2001 From: wilian Date: Fri, 27 Jul 2018 18:21:00 +0000 Subject: [PATCH] fixes bug#11414 dev:wilian qua:marcelo git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@83732 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20180709_1635__mantis11414.sql | 28 +++++++++++++++++++ .../migration/V20180710_1634__mantis11414.sql | 8 ++++++ .../migration/V20180712_1020__mantis11414.sql | 7 +++++ .../migration/V20180717_1138__mantis11414.sql | 7 +++++ 4 files changed, 50 insertions(+) create mode 100644 src/db/migration/V20180709_1635__mantis11414.sql create mode 100644 src/db/migration/V20180710_1634__mantis11414.sql create mode 100644 src/db/migration/V20180712_1020__mantis11414.sql create mode 100644 src/db/migration/V20180717_1138__mantis11414.sql diff --git a/src/db/migration/V20180709_1635__mantis11414.sql b/src/db/migration/V20180709_1635__mantis11414.sql new file mode 100644 index 000000000..f69db3c07 --- /dev/null +++ b/src/db/migration/V20180709_1635__mantis11414.sql @@ -0,0 +1,28 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE TABLE DET_ABASTO_BOLETO_HIST ( + DETABASTOBOLETOHIST_ID NUMBER(15) NOT NULL, + DETABASTOBOLETOENV_ID NUMBER(7) NULL, + DETABASTOBOLETOREC_ID NUMBER(7) NULL, + FECMODIF DATE NULL, + ACTIVO NUMBER(1) NULL, + USUARIO_ID NUMBER(7) NULL, + PRIMARY KEY (DETABASTOBOLETOHIST_ID), + FOREIGN KEY (USUARIO_ID) REFERENCES USUARIO, + FOREIGN KEY (DETABASTOBOLETOREC_ID) REFERENCES DET_ABASTO_BOLETO, + FOREIGN KEY (DETABASTOBOLETOENV_ID) REFERENCES DET_ABASTO_BOLETO + )'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE SEQUENCE DET_ABASTO_BOLETO_HIST_SEQ INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE'; + exception when object_exists then null; +end; diff --git a/src/db/migration/V20180710_1634__mantis11414.sql b/src/db/migration/V20180710_1634__mantis11414.sql new file mode 100644 index 000000000..8549424fd --- /dev/null +++ b/src/db/migration/V20180710_1634__mantis11414.sql @@ -0,0 +1,8 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -02275); +begin + execute immediate + 'ALTER TABLE REQUISICION_BOLETO ADD (INDDISTRIBUICAOESTOQUE NUMBER(1,0))'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20180712_1020__mantis11414.sql b/src/db/migration/V20180712_1020__mantis11414.sql new file mode 100644 index 000000000..dd56eb236 --- /dev/null +++ b/src/db/migration/V20180712_1020__mantis11414.sql @@ -0,0 +1,7 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values + (funcion_sistema_seq.nextval,2,''VDA > ESTOQUE BILHETE > TRANSFERENCIA ESTOQUE'',''COM.RJCONSULTORES.VENTABOLETOS.GUI.VENTA.MENU.ITENS.ITEMMENUTRANSFERENCIAESTOQUE'',1,sysdate,1)'; +end; \ No newline at end of file diff --git a/src/db/migration/V20180717_1138__mantis11414.sql b/src/db/migration/V20180717_1138__mantis11414.sql new file mode 100644 index 000000000..9ac88e27f --- /dev/null +++ b/src/db/migration/V20180717_1138__mantis11414.sql @@ -0,0 +1,7 @@ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values + (funcion_sistema_seq.nextval,2,''VDA > ESTOQUE BILHETE > AUTORIZACAO CADASTRO ESTOQUE DISTRIBUICAO'',''COM.RJCONSULTORES.SCO.VDA.ESTOQUE.AUTORIZACAOCADASTROESTOQUEDISTRIBUICAO'',1,sysdate,1)'; +end; \ No newline at end of file