diff --git a/src/db/migration/V20181204_1659__mantis12902.sql b/src/db/migration/V20181204_1659__mantis12902.sql new file mode 100644 index 000000000..6bf1c97ef --- /dev/null +++ b/src/db/migration/V20181204_1659__mantis12902.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00001); +begin + execute immediate 'UPDATE PARADA SET FECMODIF = SYSDATE'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20181204_1659__mantis12902.sql b/src/db/postgresql/migration/V20181204_1659__mantis12902.sql new file mode 100644 index 000000000..9513abceb --- /dev/null +++ b/src/db/postgresql/migration/V20181204_1659__mantis12902.sql @@ -0,0 +1,7 @@ +DO $$ +BEGIN + UPDATE PARADA SET FECMODIF = CURRENT_DATE; + + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$; \ No newline at end of file