From f2ae3db65811ceaac723996b68d8f17358169cf3 Mon Sep 17 00:00:00 2001 From: "fabricio.oliveira" Date: Fri, 12 Apr 2019 14:09:23 +0000 Subject: [PATCH] 0013746: Menu Dispositivo Venda Embarcada fixes bug#13746 dev:Leo qua:Jose git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@91880 d1611594-4594-4d17-8e1d-87c2c4800839 --- src/db/migration/V20190411_1650__mantis13746.sql | 16 ++++++++++++++++ .../migration/V20190411_1650__mantis13746.sql | 11 +++++++++++ 2 files changed, 27 insertions(+) create mode 100644 src/db/migration/V20190411_1650__mantis13746.sql create mode 100644 src/db/postgresql/migration/V20190411_1650__mantis13746.sql diff --git a/src/db/migration/V20190411_1650__mantis13746.sql b/src/db/migration/V20190411_1650__mantis13746.sql new file mode 100644 index 000000000..129188f09 --- /dev/null +++ b/src/db/migration/V20190411_1650__mantis13746.sql @@ -0,0 +1,16 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE BOLETO ADD IMEI_DISPOSITIVO_EMBARCADA VARCHAR(20)'; + exception when column_exists then null; +end; +/ + +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CAJA ADD IMEI_DISPOSITIVO_EMBARCADA VARCHAR(20)'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190411_1650__mantis13746.sql b/src/db/postgresql/migration/V20190411_1650__mantis13746.sql new file mode 100644 index 000000000..c3ade67f9 --- /dev/null +++ b/src/db/postgresql/migration/V20190411_1650__mantis13746.sql @@ -0,0 +1,11 @@ +DO $$ +BEGIN + ALTER TABLE CAJA ADD IMEI_DISPOSITIVO_EMBARCADA VARCHAR(20); +END +$$; + +DO $$ +BEGIN + ALTER TABLE BOLETO ADD IMEI_DISPOSITIVO_EMBARCADA VARCHAR(20); +END +$$;