From 1338f04f0bbce4e1a1e96362d64bd5e4e7853b64 Mon Sep 17 00:00:00 2001 From: valdir Date: Wed, 22 May 2019 17:31:34 +0000 Subject: [PATCH] =?UTF-8?q?0014294:=20Comporte=20-=20(GLPI=20-=2013138)=20?= =?UTF-8?q?47253=20=E2=80=93=20Venda=20estudante=20no=20Totem=20bug#14294?= =?UTF-8?q?=20dev:daniel=20qua:junia?= 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@93622 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190522_0930__mantis14294.sql | 7 +++++++ .../postgresql/migration/V20190522_0930__mantis14294.sql | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 src/db/migration/V20190522_0930__mantis14294.sql create mode 100644 src/db/postgresql/migration/V20190522_0930__mantis14294.sql diff --git a/src/db/migration/V20190522_0930__mantis14294.sql b/src/db/migration/V20190522_0930__mantis14294.sql new file mode 100644 index 000000000..9d2c33a83 --- /dev/null +++ b/src/db/migration/V20190522_0930__mantis14294.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430 ); +begin + execute immediate 'ALTER TABLE EMPRESA ADD (INDVENDAESTUDANTETOTEM NUMBER(1) DEFAULT 0)'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190522_0930__mantis14294.sql b/src/db/postgresql/migration/V20190522_0930__mantis14294.sql new file mode 100644 index 000000000..68853515c --- /dev/null +++ b/src/db/postgresql/migration/V20190522_0930__mantis14294.sql @@ -0,0 +1,5 @@ +DO $$ +BEGIN + ALTER TABLE EMPRESA ADD (INDVENDAESTUDANTETOTEM NUMBER(1) DEFAULT 0); +END +$$; \ No newline at end of file