From a851750a50f89e7a243e8cceb54b3f3d79734f2a Mon Sep 17 00:00:00 2001 From: frederico Date: Tue, 8 Jan 2019 19:06:45 +0000 Subject: [PATCH] bug#13110 dev:Valdevir qua:Renato git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@88626 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20190108_1454__mantis13110.sql | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/db/migration/V20190108_1454__mantis13110.sql diff --git a/src/db/migration/V20190108_1454__mantis13110.sql b/src/db/migration/V20190108_1454__mantis13110.sql new file mode 100644 index 000000000..0d8d3d877 --- /dev/null +++ b/src/db/migration/V20190108_1454__mantis13110.sql @@ -0,0 +1,22 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FORMA_PAGO_DET ADD INDTOTALBUS NUMBER (1,0)'; + exception when column_exists then null; +end; + +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FORMA_PAGO_DET ADD INDEMBARCADA NUMBER (1,0)'; + exception when column_exists then null; +end; + +/ + +UPDATE FORMA_PAGO_DET SET INDTOTALBUS = 1; +UPDATE FORMA_PAGO_DET SET INDEMBARCADA = 1;