diff --git a/src/db/migration/V20201125_1432__mantis21087.sql b/src/db/migration/V20201125_1432__mantis21087.sql new file mode 100644 index 000000000..b44d7cb1b --- /dev/null +++ b/src/db/migration/V20201125_1432__mantis21087.sql @@ -0,0 +1,11 @@ +declare + object_exists exception; + except_00957 exception; + pragma exception_init (object_exists , -01430); + pragma exception_init (except_00957 , -00957); +begin + execute immediate 'ALTER TABLE ESTACION_SITEF MODIFY NUMEMPRESA VARCHAR2(30)'; + exception + when object_exists then null; + when except_00957 then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20201125_1432__mantis21087.sql b/src/db/postgresql/migration/V20201125_1432__mantis21087.sql new file mode 100644 index 000000000..1cd402c19 --- /dev/null +++ b/src/db/postgresql/migration/V20201125_1432__mantis21087.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE ESTACION_SITEF MODIFY NUMEMPRESA VARCHAR2(30 BYTE); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file