From 680378c1282b198cfe9bc074c8b7cbcf40412926 Mon Sep 17 00:00:00 2001 From: leonardo Date: Tue, 6 Aug 2019 18:38:07 +0000 Subject: [PATCH] 15274: Diminuir o tamanho do nome dos campos fixes bug#15274 dev:valdir qua:leonardo git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@96448 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20190731_1053__mantis15173.sql | 2 +- .../migration/V20190731_1108__mantis15171.sql | 2 +- .../migration/V20190806_1408__mantis15274.sql | 25 +++++++++++++++++++ 3 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 src/db/migration/V20190806_1408__mantis15274.sql diff --git a/src/db/migration/V20190731_1053__mantis15173.sql b/src/db/migration/V20190731_1053__mantis15173.sql index c48c58c81..64656d17d 100644 --- a/src/db/migration/V20190731_1053__mantis15173.sql +++ b/src/db/migration/V20190731_1053__mantis15173.sql @@ -7,7 +7,7 @@ declare pragma exception_init (except_01451 , -01451); pragma exception_init (except_01442 , -01442); begin - execute immediate 'ALTER TABLE EMPRESA ADD (INDIMPRIMELOGOBILHETEVENDAEMBARCADA NUMBER(1) )'; + execute immediate 'ALTER TABLE EMPRESA ADD (INDIMPLOGOBILHETEVTAEMBARCADA NUMBER(1) )'; exception when object_exists then null; when except_01451 then null; diff --git a/src/db/migration/V20190731_1108__mantis15171.sql b/src/db/migration/V20190731_1108__mantis15171.sql index 9cd862686..32431f96d 100644 --- a/src/db/migration/V20190731_1108__mantis15171.sql +++ b/src/db/migration/V20190731_1108__mantis15171.sql @@ -7,7 +7,7 @@ declare pragma exception_init (except_01451 , -01451); pragma exception_init (except_01442 , -01442); begin - execute immediate 'ALTER TABLE EMPRESA ADD (INDIMPRIMERELFECHAMENTODETALHADOEMBARCADA NUMBER(1) )'; + execute immediate 'ALTER TABLE EMPRESA ADD (INDIMPRIMERELFECHDETEMBARCADA NUMBER(1) )'; exception when object_exists then null; when except_01451 then null; diff --git a/src/db/migration/V20190806_1408__mantis15274.sql b/src/db/migration/V20190806_1408__mantis15274.sql new file mode 100644 index 000000000..8b1d6c4a5 --- /dev/null +++ b/src/db/migration/V20190806_1408__mantis15274.sql @@ -0,0 +1,25 @@ +declare + object_exists exception; + except_00957 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_00957 , -00957); +begin + execute immediate 'ALTER TABLE EMPRESA RENAME COLUMN INDIMPRIMELOGOBILHETEVENDAEMBARCADA TO INDIMPLOGOBILHETEVTAEMBARCADA'; + 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 EMPRESA RENAME COLUMN INDIMPRIMERELFECHAMENTODETALHADOEMBARCADA TO INDIMPRIMERELFECHDETEMBARCADA'; + exception + when object_exists then null; + when except_00957 then null; +end; \ No newline at end of file