diff --git a/src/db/migration/V20200215_1330__mantis18073.sql b/src/db/migration/V20200215_1330__mantis18073.sql new file mode 100644 index 000000000..8734d59c4 --- /dev/null +++ b/src/db/migration/V20200215_1330__mantis18073.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'ALTER TABLE CATEGORIA_DESCUENTO MODIFY CORPOLTRONA VARCHAR2(30)'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20200215_1330__mantis18073.sql b/src/db/postgresql/migration/V20200215_1330__mantis18073.sql new file mode 100644 index 000000000..ec4aff19d --- /dev/null +++ b/src/db/postgresql/migration/V20200215_1330__mantis18073.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE CATEGORIA_DESCUENTO MODIFY CORPOLTRONA VARCHAR2(30); + EXCEPTION WHEN unique_violation THEN NULL; +END +$$;