diff --git a/src/db/migration/V20190320_1605__mantis13751.sql b/src/db/migration/V20190320_1605__mantis13751.sql new file mode 100644 index 000000000..c86b1a68d --- /dev/null +++ b/src/db/migration/V20190320_1605__mantis13751.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE RUTA ADD INDVENDAEMBARCADA NUMBER(1,0) DEFAULT 0'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20190320_1605__mantis13751.sql b/src/db/postgresql/migration/V20190320_1605__mantis13751.sql new file mode 100644 index 000000000..5f9f0a09f --- /dev/null +++ b/src/db/postgresql/migration/V20190320_1605__mantis13751.sql @@ -0,0 +1,5 @@ +DO $$ +BEGIN + ALTER TABLE RUTA ADD INDVENDAEMBARCADA NUMBER(1,0) DEFAULT 0; +END +$$; \ No newline at end of file