From 0d20516b2ee94b1bc66199042571d51401bf6c27 Mon Sep 17 00:00:00 2001 From: fabio Date: Thu, 9 Sep 2021 12:39:32 +0000 Subject: [PATCH] bug#19598 dev: Aristides qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/BD/FlyWay/trunk@108653 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../migration/V20210617_1759__mantis19598.sql | 17 +++++++++++++++++ .../migration/V20210617_1759__mantis19598.sql | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 src/db/migration/V20210617_1759__mantis19598.sql create mode 100644 src/db/postgresql/migration/V20210617_1759__mantis19598.sql diff --git a/src/db/migration/V20210617_1759__mantis19598.sql b/src/db/migration/V20210617_1759__mantis19598.sql new file mode 100644 index 000000000..805d5ab63 --- /dev/null +++ b/src/db/migration/V20210617_1759__mantis19598.sql @@ -0,0 +1,17 @@ +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CHECKIN_AUTOMATICO ADD IMEI_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 CHECKIN_CERRADO ADD IMEI_EMBARCADA VARCHAR(20)'; + exception when column_exists then null; +end; +/ \ No newline at end of file diff --git a/src/db/postgresql/migration/V20210617_1759__mantis19598.sql b/src/db/postgresql/migration/V20210617_1759__mantis19598.sql new file mode 100644 index 000000000..805d5ab63 --- /dev/null +++ b/src/db/postgresql/migration/V20210617_1759__mantis19598.sql @@ -0,0 +1,17 @@ +/ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CHECKIN_AUTOMATICO ADD IMEI_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 CHECKIN_CERRADO ADD IMEI_EMBARCADA VARCHAR(20)'; + exception when column_exists then null; +end; +/ \ No newline at end of file