From d80a69c314af79306caed42abd5986c99b709939 Mon Sep 17 00:00:00 2001 From: valdevir Date: Fri, 31 Mar 2023 09:43:46 -0300 Subject: [PATCH] fixes bug #AL-2209 --- .../migration/V20230331_0808__AL-2209.sql | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/db/postgresql/migration/V20230331_0808__AL-2209.sql diff --git a/src/db/postgresql/migration/V20230331_0808__AL-2209.sql b/src/db/postgresql/migration/V20230331_0808__AL-2209.sql new file mode 100644 index 000000000..5a858f796 --- /dev/null +++ b/src/db/postgresql/migration/V20230331_0808__AL-2209.sql @@ -0,0 +1,23 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FORMA_PAGO ADD (INDPERCENTUALDESCONTO NUMBER(1,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FORMA_PAGO ADD (VALORDESCONTO NUMBER(10,0))'; + exception when column_exists then null; +end; +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE FORMA_PAGO ADD (PERCENTUALDESCONTO NUMBER(10,0))'; + exception when column_exists then null; +end; \ No newline at end of file