From 059cf64f6c1979b99218cf78d29f99d9e23f5e69 Mon Sep 17 00:00:00 2001 From: "daniel.zauli" Date: Wed, 20 Sep 2017 19:52:34 +0000 Subject: [PATCH] fixes bug #9472 commit 2 de 2 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@74055 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20170920_1656_mantis9472.sql | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/db/migration/V20170920_1656_mantis9472.sql diff --git a/src/db/migration/V20170920_1656_mantis9472.sql b/src/db/migration/V20170920_1656_mantis9472.sql new file mode 100644 index 000000000..aee10f10f --- /dev/null +++ b/src/db/migration/V20170920_1656_mantis9472.sql @@ -0,0 +1,15 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430); +begin + execute immediate 'ALTER TABLE CLIENTE_DESCUENTO ADD (INDVENDER1PORCORRIDA NUMBER(1) DEFAULT 0 NOT NULL )'; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00001); +begin + execute immediate 'UPDATE CLIENTE_DESCUENTO SET INDVENDER1PORCORRIDA = 0'; + exception when object_exists then null; +end; \ No newline at end of file