From 8a6bbe879e7eec5bd0cb4483a4e4dc011c4b918a Mon Sep 17 00:00:00 2001 From: "thiago.clemente" Date: Tue, 28 Apr 2020 13:30:08 +0000 Subject: [PATCH] bug#19058 dev:gleimar qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@101358 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20200427_1430__mantis19058.sql | 15 +++++++++++++++ .../migration/V20200427_1430__mantis19058.sql | 5 +++++ 2 files changed, 20 insertions(+) create mode 100644 src/db/migration/V20200427_1430__mantis19058.sql create mode 100644 src/db/postgresql/migration/V20200427_1430__mantis19058.sql diff --git a/src/db/migration/V20200427_1430__mantis19058.sql b/src/db/migration/V20200427_1430__mantis19058.sql new file mode 100644 index 000000000..a969df0e9 --- /dev/null +++ b/src/db/migration/V20200427_1430__mantis19058.sql @@ -0,0 +1,15 @@ +declare + object_exists exception; + except_01451 exception; + except_01442 exception; + + pragma exception_init (object_exists , -01430); + pragma exception_init (except_01451 , -01451); + pragma exception_init (except_01442 , -01442); +begin + execute immediate 'ALTER TABLE PUNTO_VENTA ADD TIEMPOMAXBOLETOENVENTA NUMBER(10)'; + exception + when object_exists then null; + when except_01451 then null; + when except_01442 then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20200427_1430__mantis19058.sql b/src/db/postgresql/migration/V20200427_1430__mantis19058.sql new file mode 100644 index 000000000..bd6096bef --- /dev/null +++ b/src/db/postgresql/migration/V20200427_1430__mantis19058.sql @@ -0,0 +1,5 @@ +DO $$ +BEGIN + 'ALTER TABLE PUNTO_VENTA ADD TIEMPOMAXBOLETOENVENTA NUMBER(10)'; +END +$$; \ No newline at end of file