diff --git a/src/db/migration/V20200611_0923__mantis20890.sql b/src/db/migration/V20200611_0923__mantis20890.sql new file mode 100644 index 000000000..12a6d7ea4 --- /dev/null +++ b/src/db/migration/V20200611_0923__mantis20890.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00001); +begin + execute immediate 'UPDATE FORMA_PAGO SET CVESISTEMA = ''FORMA_PAGO_DEBITO'' WHERE FORMAPAGO_ID = 3'; + exception when object_exists then null; +end; \ No newline at end of file diff --git a/src/db/postgresql/migration/V20200611_0923__mantis20890.sql b/src/db/postgresql/migration/V20200611_0923__mantis20890.sql new file mode 100644 index 000000000..c49c1d177 --- /dev/null +++ b/src/db/postgresql/migration/V20200611_0923__mantis20890.sql @@ -0,0 +1,6 @@ +DO $$ +BEGIN + UPDATE FORMA_PAGO SET CVESISTEMA = 'FORMA_PAGO_DEBITO' WHERE FORMAPAGO_ID = 3; + EXCEPTION WHEN duplicate_column THEN NULL; +END +$$;