From 8acb3bf075bd520b56254613acda58ae1bace5c4 Mon Sep 17 00:00:00 2001 From: walace Date: Thu, 15 Sep 2022 14:00:32 +0000 Subject: [PATCH] fixes bug# AL-1379 qua: dev:gleimar MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "Comitado a correção do script, relacionado ao card 1340" git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@114218 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20220915_1100__jiraAL1379.sql | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/db/migration/V20220915_1100__jiraAL1379.sql diff --git a/src/db/migration/V20220915_1100__jiraAL1379.sql b/src/db/migration/V20220915_1100__jiraAL1379.sql new file mode 100644 index 000000000..3f4b6daff --- /dev/null +++ b/src/db/migration/V20220915_1100__jiraAL1379.sql @@ -0,0 +1,23 @@ +declare + object_exists exception; + except_00957 exception; + pragma exception_init (object_exists , -01430); + pragma exception_init (except_00957 , -00957); +begin + execute immediate 'ALTER TABLE CAJA RENAME COLUMN SEQUENCIAROD TO SEQUENCIARODTAXACURITIBA'; + 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 BOLETO RENAME COLUMN SEQUENCIAROD TO SEQUENCIARODTAXACURITIBA'; + exception + when object_exists then null; + when except_00957 then null; +end; \ No newline at end of file