From 0e93437950453796f221f3fbdc3d66d903973036 Mon Sep 17 00:00:00 2001 From: walace Date: Fri, 6 Sep 2019 18:08:52 +0000 Subject: [PATCH] fixes bug#15119 qua: dev: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@97358 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20190905_1027__mantis15119.sql | 5 +++++ .../migration/V20190905_1654__mantis15119.sql | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 src/db/migration/V20190905_1027__mantis15119.sql create mode 100644 src/db/migration/V20190905_1654__mantis15119.sql 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