From a891b6a0b27ac5d8e15a2fe46db1d44e3554122b Mon Sep 17 00:00:00 2001 From: "wallace.henrique" Date: Fri, 1 Mar 2024 15:36:55 -0300 Subject: [PATCH] fixes bug#AL-3928 --- pom.xml | 2 +- src/db/migration/V20240301_1539__AL-3921.sql | 85 ++++++++++++++++++++ 2 files changed, 86 insertions(+), 1 deletion(-) create mode 100644 src/db/migration/V20240301_1539__AL-3921.sql diff --git a/pom.xml b/pom.xml index bd8b2f4cf..9bbed5b88 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 br.com.rjconsultores Flyway - 1.30.0 + 1.30.1 diff --git a/src/db/migration/V20240301_1539__AL-3921.sql b/src/db/migration/V20240301_1539__AL-3921.sql new file mode 100644 index 000000000..a2d52bf6f --- /dev/null +++ b/src/db/migration/V20240301_1539__AL-3921.sql @@ -0,0 +1,85 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE TIPO_EVENTO_EXTRA MODIFY IMPMAX NUMBER(12,2)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EVENTO_EXTRA MODIFY IMPINGRESO NUMBER(12,2)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE EVENTO_EXTRA MODIFY IMPORTEIVA NUMBER(12,2)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CAJA_DIVERSOS MODIFY PRECIO NUMBER(12,2)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CAJA_DIVERSOS_PAGO MODIFY IMPORTE NUMBER(12,2)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate ' +ALTER TABLE DIGITA_ITEM MODIFY PRECIO NUMBER(12,2)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate ' +ALTER TABLE DIGITA_VENTA MODIFY IMPTOTAL NUMBER(12,2)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate ' +ALTER TABLE CONTROL_EFECTIVO MODIFY IMPORTEVENTA NUMBER(15,2)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate ' +ALTER TABLE CORTE_TURNO MODIFY IMPORTECIERRE NUMBER(15,2)'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate ' +ALTER TABLE CORTE_TURNO MODIFY IMPORTECOMISSAO NUMBER(15,2)'; + exception when column_exists then null; +end; +/ \ No newline at end of file