diff --git a/src/db/migration/V20190704_1113__mantis14659.sql b/src/db/migration/V20190704_1113__mantis14659.sql new file mode 100644 index 000000000..94438f421 --- /dev/null +++ b/src/db/migration/V20190704_1113__mantis14659.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -01430 ); +begin + execute immediate 'ALTER TABLE CORRIDA MODIFY (CANTPARADOS NUMBER(7, 0))'; + exception when object_exists then null; +end; diff --git a/src/db/postgresql/migration/V20190704_1119__mantis14659.sql b/src/db/postgresql/migration/V20190704_1119__mantis14659.sql new file mode 100644 index 000000000..c6ce31c38 --- /dev/null +++ b/src/db/postgresql/migration/V20190704_1119__mantis14659.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + ALTER TABLE CORRIDA MODIFY (CANTPARADOS NUMBER(7, 0)); + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file