From cab0834e4d4fa1a55147ddc945c89b52b9a87fb7 Mon Sep 17 00:00:00 2001 From: "valdir.cordeiro" Date: Fri, 10 Nov 2023 10:37:23 -0300 Subject: [PATCH 1/8] =?UTF-8?q?bug#al-3254=2066363=20-=20Servi=C3=A7os=20-?= =?UTF-8?q?=20Ajustes=20na=20Tela=20de=20Configura=C3=A7=C3=A3o=20de=20Ser?= =?UTF-8?q?vi=C3=A7o=20na=20ADM=20dev:=20qua:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- src/db/migration/V2023_0914__AL-3254.sql | 28 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V2023_0914__AL-3254.sql diff --git a/pom.xml b/pom.xml index 31aefc906..22ce61b81 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.16.0 + 1.17.0 diff --git a/src/db/migration/V2023_0914__AL-3254.sql b/src/db/migration/V2023_0914__AL-3254.sql new file mode 100644 index 000000000..cdda490dd --- /dev/null +++ b/src/db/migration/V2023_0914__AL-3254.sql @@ -0,0 +1,28 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE TABLE HEADER_ESQUEMA_CORRIDA + ( + "HEADERESQUEMACORRIDA_ID" NUMBER(7,0) NOT NULL ENABLE, + "SEQUENCIA_HEADER" VARCHAR2(50 BYTE) ) + '; + exception when object_exists then null; +end; +/ +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'CREATE SEQUENCE "HEADER_ESQUEMA_CORRIDA_SEQ" MINVALUE 1 MAXVALUE 999 INCREMENT BY 1 START WITH 1 CACHE 20 NOORDER NOCYCLE'; + exception when object_exists then null; +end; +/ +declare + dup_val_on_index exception; + pragma exception_init (dup_val_on_index , -00001); +begin + execute immediate 'Insert into HEADER_ESQUEMA_CORRIDA (HEADERESQUEMACORRIDA_ID, SEQUENCIA_HEADER) + values (1,''1,2,3,4,5,6,7,8,9,10,11,12,13,14,15'')'; + exception when dup_val_on_index then null; +end; \ No newline at end of file From 8b468eb92c4b1b277eebdfd31cab905ef711ce9b Mon Sep 17 00:00:00 2001 From: "wallace.henrique" Date: Fri, 10 Nov 2023 15:02:43 -0300 Subject: [PATCH 2/8] fixes bug#AL-3351 dev: qua: --- pom.xml | 2 +- src/db/migration/V20231110_1023__AL3351.sql | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20231110_1023__AL3351.sql diff --git a/pom.xml b/pom.xml index 22ce61b81..c2d23f626 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.17.0 + 1.18.0 diff --git a/src/db/migration/V20231110_1023__AL3351.sql b/src/db/migration/V20231110_1023__AL3351.sql new file mode 100644 index 000000000..3fdd6ab07 --- /dev/null +++ b/src/db/migration/V20231110_1023__AL3351.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE PUNTO_VENTA ADD INDTAXACONVENIENCIAORGAOCONCEDENTE NUMBER(1,0)' ; + exception when column_exists then null; +end; \ No newline at end of file From 57600f4e0682a3d2442fb631be45dd368b7ee441 Mon Sep 17 00:00:00 2001 From: "wallace.henrique" Date: Fri, 10 Nov 2023 15:05:40 -0300 Subject: [PATCH 3/8] fixes bug#AL-3351 --- pom.xml | 2 +- src/db/migration/V20231110_1023__AL3351.sql | 2 +- src/db/postgresql/migration/V20231119_1030__AL-3351.sql | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 src/db/postgresql/migration/V20231119_1030__AL-3351.sql diff --git a/pom.xml b/pom.xml index c2d23f626..48e80a7e1 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.18.0 + 1.18.0 diff --git a/src/db/migration/V20231110_1023__AL3351.sql b/src/db/migration/V20231110_1023__AL3351.sql index 3fdd6ab07..fae1eca9c 100644 --- a/src/db/migration/V20231110_1023__AL3351.sql +++ b/src/db/migration/V20231110_1023__AL3351.sql @@ -4,4 +4,4 @@ declare begin execute immediate 'ALTER TABLE PUNTO_VENTA ADD INDTAXACONVENIENCIAORGAOCONCEDENTE NUMBER(1,0)' ; exception when column_exists then null; -end; \ No newline at end of file +end; diff --git a/src/db/postgresql/migration/V20231119_1030__AL-3351.sql b/src/db/postgresql/migration/V20231119_1030__AL-3351.sql new file mode 100644 index 000000000..ef29cd51a --- /dev/null +++ b/src/db/postgresql/migration/V20231119_1030__AL-3351.sql @@ -0,0 +1,5 @@ +DO $$ +BEGIN + ALTER TABLE PUNTO_VENTA ADD INDTAXACONVENIENCIAORGAOCONCEDENTE NUMBER(1,0); +END +$$; \ No newline at end of file From e00d7756abb0944524ce30733e2d7fdab521160e Mon Sep 17 00:00:00 2001 From: Gleimar Botelho Baleeiro Date: Tue, 14 Nov 2023 17:19:17 -0300 Subject: [PATCH 4/8] =?UTF-8?q?Implementa=C3=A7=C3=A3o=20do=20fluxo=20de?= =?UTF-8?q?=20autoriza=C3=A7=C3=A3o=20para=20novas=20empresas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/db/migration/V20231109_1110__AL-3470.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/db/migration/V20231109_1110__AL-3470.sql diff --git a/src/db/migration/V20231109_1110__AL-3470.sql b/src/db/migration/V20231109_1110__AL-3470.sql new file mode 100644 index 000000000..7aa3aaa98 --- /dev/null +++ b/src/db/migration/V20231109_1110__AL-3470.sql @@ -0,0 +1,13 @@ +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 ADD (LICENCA VARCHAR(500))'; + exception + when object_exists then null; + when except_00957 then null; +end; +/ \ No newline at end of file From 46232e4a0226bd47d6e72ec8b5d38aa45b88c053 Mon Sep 17 00:00:00 2001 From: Gleimar Botelho Baleeiro Date: Thu, 16 Nov 2023 10:25:30 -0300 Subject: [PATCH 5/8] =?UTF-8?q?Implementa=C3=A7=C3=A3o=20do=20fluxo=20de?= =?UTF-8?q?=20autoriza=C3=A7=C3=A3o=20para=20novas=20empresas?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 48e80a7e1..f01230d94 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.18.0 + 1.19.0 From 54d300672ff89f354c14bd87c80b9849db0a7043 Mon Sep 17 00:00:00 2001 From: "wallace.henrique" Date: Fri, 17 Nov 2023 12:33:59 -0300 Subject: [PATCH 6/8] fixes bug#AL-3499 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index f01230d94..b6754e79d 100644 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,6 @@ + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd "> 4.0.0 br.com.rjconsultores Flyway From 3844ae200b823dbc5689b6b38627a05cd6a44e14 Mon Sep 17 00:00:00 2001 From: "wallace.henrique" Date: Tue, 21 Nov 2023 10:38:25 -0300 Subject: [PATCH 7/8] fixes bug#AL-3524 --- pom.xml | 2 +- ...V20231110_1023__AL3351.sql => V20231114_1025__AL3499.sql} | 2 +- src/db/postgresql/migration/V20231119_1030__AL-3351.sql | 5 ----- 3 files changed, 2 insertions(+), 7 deletions(-) rename src/db/migration/{V20231110_1023__AL3351.sql => V20231114_1025__AL3499.sql} (58%) delete mode 100644 src/db/postgresql/migration/V20231119_1030__AL-3351.sql diff --git a/pom.xml b/pom.xml index b6754e79d..beb512e4f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.19.0 + 1.19.1 diff --git a/src/db/migration/V20231110_1023__AL3351.sql b/src/db/migration/V20231114_1025__AL3499.sql similarity index 58% rename from src/db/migration/V20231110_1023__AL3351.sql rename to src/db/migration/V20231114_1025__AL3499.sql index fae1eca9c..20415981f 100644 --- a/src/db/migration/V20231110_1023__AL3351.sql +++ b/src/db/migration/V20231114_1025__AL3499.sql @@ -2,6 +2,6 @@ declare column_exists exception; pragma exception_init (column_exists , -01430); begin - execute immediate 'ALTER TABLE PUNTO_VENTA ADD INDTAXACONVENIENCIAORGAOCONCEDENTE NUMBER(1,0)' ; + execute immediate 'ALTER TABLE PUNTO_VENTA ADD INDTAXACONVORGAOCONCEDENTE NUMBER(1,0)' ; exception when column_exists then null; end; diff --git a/src/db/postgresql/migration/V20231119_1030__AL-3351.sql b/src/db/postgresql/migration/V20231119_1030__AL-3351.sql deleted file mode 100644 index ef29cd51a..000000000 --- a/src/db/postgresql/migration/V20231119_1030__AL-3351.sql +++ /dev/null @@ -1,5 +0,0 @@ -DO $$ -BEGIN - ALTER TABLE PUNTO_VENTA ADD INDTAXACONVENIENCIAORGAOCONCEDENTE NUMBER(1,0); -END -$$; \ No newline at end of file From 8612a51679ca8da741022410f4d396533248f724 Mon Sep 17 00:00:00 2001 From: "wallace.henrique" Date: Tue, 21 Nov 2023 11:05:23 -0300 Subject: [PATCH 8/8] fixes bug#AL-3524 --- src/db/migration/V20231114_1025__AL3499.sql | 7 ------- src/db/migration/V20231114_1025__AL3524.sql | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+), 7 deletions(-) delete mode 100644 src/db/migration/V20231114_1025__AL3499.sql create mode 100644 src/db/migration/V20231114_1025__AL3524.sql diff --git a/src/db/migration/V20231114_1025__AL3499.sql b/src/db/migration/V20231114_1025__AL3499.sql deleted file mode 100644 index 20415981f..000000000 --- a/src/db/migration/V20231114_1025__AL3499.sql +++ /dev/null @@ -1,7 +0,0 @@ -declare - column_exists exception; - pragma exception_init (column_exists , -01430); -begin - execute immediate 'ALTER TABLE PUNTO_VENTA ADD INDTAXACONVORGAOCONCEDENTE NUMBER(1,0)' ; - exception when column_exists then null; -end; diff --git a/src/db/migration/V20231114_1025__AL3524.sql b/src/db/migration/V20231114_1025__AL3524.sql new file mode 100644 index 000000000..6eee03438 --- /dev/null +++ b/src/db/migration/V20231114_1025__AL3524.sql @@ -0,0 +1,19 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE PUNTO_VENTA ADD INDTAXACONVORGAOCONCEDENTE NUMBER(1,0)' ; + exception when column_exists 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 PUNTO_VENTA RENAME COLUMN INDTAXACONVENIENCIAORGAOCONCEDENTE TO INDTAXACONVORGAOCONCEDENTE'; + exception + when object_exists then null; + when except_00957 then null; +end; \ No newline at end of file