From 396cbba0ede556905eb1ab829591e0ff97e8828a Mon Sep 17 00:00:00 2001 From: "lucas.taia" Date: Thu, 14 Jan 2021 16:41:56 +0000 Subject: [PATCH] bug#206 dev:lucas qua: scripts Ebus git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@105020 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20200114_1320__jira206.sql | 59 ++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 src/db/migration/V20200114_1320__jira206.sql diff --git a/src/db/migration/V20200114_1320__jira206.sql b/src/db/migration/V20200114_1320__jira206.sql new file mode 100644 index 000000000..ea2d7485a --- /dev/null +++ b/src/db/migration/V20200114_1320__jira206.sql @@ -0,0 +1,59 @@ +declare + object_exists exception; + except_00957 exception; + pragma exception_init (object_exists , -01430); + pragma exception_init (except_00957 , -00957); +begin + execute immediate 'ALTER TABLE GP_PRICING_ASIENTO ADD (VALORADICIONALPRICING NUMBER(5,2) )'; + exception + when object_exists then null; + when except_00957 then null; +end; +/ +declare + object_exists exception; + except_00957 exception; + pragma exception_init (object_exists , -01430); + pragma exception_init (except_00957 , -00957); +begin + execute immediate 'ALTER TABLE GP_PRICING ADD (HORAANTECIPA DATE )'; + exception + when object_exists then null; + when except_00957 then null; +end; +/ +declare + object_exists exception; + except_00957 exception; + pragma exception_init (object_exists , -01430); + pragma exception_init (except_00957 , -00957); +begin + execute immediate 'ALTER TABLE GP_PRICING ADD (VALORADICIONALPRICING NUMBER(5,2) )'; + exception + when object_exists then null; + when except_00957 then null; +end; +/ +declare + object_exists exception; + except_00957 exception; + pragma exception_init (object_exists , -01430); + pragma exception_init (except_00957 , -00957); +begin + execute immediate 'ALTER TABLE GP_PRICING ADD (PORCADICIONALPRICING NUMBER(5,2) )'; + exception + when object_exists then null; + when except_00957 then null; +end; +/ +declare + object_exists exception; + except_00957 exception; + pragma exception_init (object_exists , -01430); + pragma exception_init (except_00957 , -00957); +begin + execute immediate 'ALTER TABLE GP_PRICING ADD (REDONDEO NUMBER(1) )'; + exception + when object_exists then null; + when except_00957 then null; +end; \ No newline at end of file