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