From 808898d12a81378a2e4da37f5365cb935cc04969 Mon Sep 17 00:00:00 2001 From: alberto Date: Wed, 27 Feb 2019 21:57:38 +0000 Subject: [PATCH] =?UTF-8?q?[BPe]=20-=20Sequencial=20do=20n=C3=BAmero=20do?= =?UTF-8?q?=20BPe=20bug#13647=20dev:trevezani=20qua:?= 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@90345 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190227_1840__mantis13647.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/db/migration/V20190227_1840__mantis13647.sql diff --git a/src/db/migration/V20190227_1840__mantis13647.sql b/src/db/migration/V20190227_1840__mantis13647.sql new file mode 100644 index 000000000..dee5ea7c4 --- /dev/null +++ b/src/db/migration/V20190227_1840__mantis13647.sql @@ -0,0 +1,15 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EMPRESA ADD INDREAPROVEITARNUMBPEREJEITADO NUMBER(1,0) DEFAULT 0'; + exception when column_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00001); +begin + execute immediate 'UPDATE EMPRESA SET INDREAPROVEITARNUMBPEREJEITADO = 0'; + exception when object_exists then null; +end; \ No newline at end of file