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