From 0245307b29e13329cbf0700f37bd39d28f858461 Mon Sep 17 00:00:00 2001 From: leonardo Date: Mon, 3 Jul 2017 17:02:26 +0000 Subject: [PATCH] fixes bug #9295 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@70923 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20170702_1432__mantis9295.sql | 7 +++++++ src/db/migration/V20170702_1516__mantis9295.sql | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 src/db/migration/V20170702_1432__mantis9295.sql create mode 100644 src/db/migration/V20170702_1516__mantis9295.sql diff --git a/src/db/migration/V20170702_1432__mantis9295.sql b/src/db/migration/V20170702_1432__mantis9295.sql new file mode 100644 index 000000000..d19dce960 --- /dev/null +++ b/src/db/migration/V20170702_1432__mantis9295.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE PTOVTA_CAT_IND ADD (USUARIOBLOQUEADO_ID NUMBER(7) DEFAULT -1) '; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20170702_1516__mantis9295.sql b/src/db/migration/V20170702_1516__mantis9295.sql new file mode 100644 index 000000000..30ae94d50 --- /dev/null +++ b/src/db/migration/V20170702_1516__mantis9295.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'INSERT INTO USUARIO (USUARIO_ID, NOMBUSUARIO, CVEUSUARIO, activo) VALUES (-1, ''TODOS'', ''TODOS'', 1)'; + exception when object_exists then null; +end; \ No newline at end of file