diff --git a/src/db/migration/V20180813_0942__mantis11602.sql b/src/db/migration/V20180813_0942__mantis11602.sql new file mode 100644 index 000000000..f46a298a1 --- /dev/null +++ b/src/db/migration/V20180813_0942__mantis11602.sql @@ -0,0 +1,8 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE ESTACION_IMPRESORA DROP COLUMN INDARCHIVOLAYOUTINTERNACIONAL'; + execute immediate 'ALTER TABLE ESTACION_IMPRESORA ADD NOMBARCHIVOLAYOUTINTERNACIONAL VARCHAR2(60)'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20180813_0947__mantis11602.sql b/src/db/postgresql/migration/V20180813_0947__mantis11602.sql new file mode 100644 index 000000000..f4a258b50 --- /dev/null +++ b/src/db/postgresql/migration/V20180813_0947__mantis11602.sql @@ -0,0 +1,8 @@ +DO $$ +BEGIN + ALTER TABLE ESTACION_IMPRESORA DROP COLUMN INDARCHIVOLAYOUTINTERNACIONAL; + ALTER TABLE ESTACION_IMPRESORA ADD NOMBARCHIVOLAYOUTINTERNACIONAL VARCHAR(60); + + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file