From cb2062b9bda0952ce0d90dedb7f45f0075650d6a Mon Sep 17 00:00:00 2001 From: valdevir Date: Tue, 1 Dec 2020 03:41:31 +0000 Subject: [PATCH] =?UTF-8?q?fixes=20bug#20477=20qua:=20dev:Valdir=20Realiza?= =?UTF-8?q?do=20implementa=C3=A7=C3=A3o=20de=20tela=20cadastro=20operadore?= =?UTF-8?q?s=20ao=20dispositivo.?= 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@104557 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20201128_1435__mantis20477.sql | 28 +++++++++++++++++++ .../migration/V20201130_1520__mantis20477.sql | 6 ++++ 2 files changed, 34 insertions(+) create mode 100644 src/db/migration/V20201128_1435__mantis20477.sql create mode 100644 src/db/migration/V20201130_1520__mantis20477.sql diff --git a/src/db/migration/V20201128_1435__mantis20477.sql b/src/db/migration/V20201128_1435__mantis20477.sql new file mode 100644 index 000000000..de929989e --- /dev/null +++ b/src/db/migration/V20201128_1435__mantis20477.sql @@ -0,0 +1,28 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE TABLE EMBARCADA_DISP_OPERADOR ( + EMBARCADADISPOPERADOR_ID NUMBER(15) NOT NULL, + DISPOSITIVOEMBARCADA_ID NUMBER(7) NOT NULL, + PUNTOVENTA_ID NUMBER(15) NOT NULL, + USUARIO_ID NUMBER(7) NULL, + ACTIVO NUMBER(1) NULL, + FECMODIF DATE NULL, + PRIMARY KEY (EMBARCADADISPOPERADOR_ID), + FOREIGN KEY (USUARIO_ID) REFERENCES USUARIO, + FOREIGN KEY (PUNTOVENTA_ID) REFERENCES PUNTO_VENTA, + FOREIGN KEY (DISPOSITIVOEMBARCADA_ID) REFERENCES DISPOSITIVO_EMBARCADA + )'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate + 'CREATE SEQUENCE EMBARCADADISPOPERADOR_SEQ INCREMENT BY 1 START WITH 1 NOCACHE ORDER NOCYCLE'; + exception when object_exists then null; +end; diff --git a/src/db/migration/V20201130_1520__mantis20477.sql b/src/db/migration/V20201130_1520__mantis20477.sql new file mode 100644 index 000000000..6ea6489bc --- /dev/null +++ b/src/db/migration/V20201130_1520__mantis20477.sql @@ -0,0 +1,6 @@ +declare +begin + execute immediate 'insert into funcion_sistema (funcionsistema_id,sistema_id,nombfuncion,descruta,activo,fecmodif,usuario_id) values + (FUNCION_SISTEMA_SEQ.NEXTVAL,1,''ADM > ESQUEMA OPERACIONAL > CONFIGURACAO VENDA EMBARCADA > OPERADORES DISP'', ''COM.RJCONSULTORES.ADMINISTRACION.GUI.ESQUEMAOPERACIONAL.MENU.CONFVENDAEMBARCADA.OPERADORESDISP'',1,SYSDATE,-1)'; + exception when others then null; +end; \ No newline at end of file