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 +$$;