diff --git a/src/db/migration/V20190905_1027__mantis15119.sql b/src/db/migration/V20190905_1027__mantis15119.sql new file mode 100644 index 000000000..46c8364a0 --- /dev/null +++ b/src/db/migration/V20190905_1027__mantis15119.sql @@ -0,0 +1,5 @@ +declare +begin + execute immediate 'Insert into FUNCION_SISTEMA (FUNCIONSISTEMA_ID,SISTEMA_ID,NOMBFUNCION,DESCRUTA,ACTIVO,FECMODIF,USUARIO_ID) values (FUNCION_SISTEMA_SEQ.nextval,''2'',''ADM > CONFIGURAR CUSTOM TOTEM'',''COM.RJCONSULTORES.ADMINISTRACION.GUI.ESQUEMAOPERACIONAL.MENU.CONFTOTEM'',''1'',sysdate,''1'')'; + exception when others then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20190905_1654__mantis15119.sql b/src/db/migration/V20190905_1654__mantis15119.sql new file mode 100644 index 000000000..4a1a8be34 --- /dev/null +++ b/src/db/migration/V20190905_1654__mantis15119.sql @@ -0,0 +1,18 @@ +declare + table_exists exception; + pragma exception_init (table_exists , -00955); +begin + execute immediate + 'CREATE TABLE CONF_TOTEM ( + CONFTOTEM_ID NUMBER(1) NOT NULL, + CHAVE VARCHAR2(100) NULL, + VALOR NUMBER(1) NULL, + ACTIVO NUMBER(1), + SISTEMA NUMBER(1), + FECMODIF DATE, + USUARIO_ID NUMBER(7), + PRIMARY KEY ( CONFTOTEM_ID ) + )'; + + exception when table_exists then null; +end; \ No newline at end of file