diff --git a/src/db/migration/V20171101_1600__mantis9930.sql b/src/db/migration/V20171101_1600__mantis9930.sql new file mode 100644 index 000000000..10e1c9b70 --- /dev/null +++ b/src/db/migration/V20171101_1600__mantis9930.sql @@ -0,0 +1,7 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'alter table FORMA_PAGO add constraint uniq_fp_cvesistema unique("CVESISTEMA")'; + exception when column_exists then null; +end; \ No newline at end of file diff --git a/src/db/migration/V20171101_1601__mantis9930.sql b/src/db/migration/V20171101_1601__mantis9930.sql new file mode 100644 index 000000000..8119c9330 --- /dev/null +++ b/src/db/migration/V20171101_1601__mantis9930.sql @@ -0,0 +1,7 @@ +declare + object_exists exception; + pragma exception_init (object_exists , -00001); +begin + execute immediate 'UPDATE FORMA_PAGO SET DESCPAGO = ''GERACAO OCD'', CVEPAGO = ''GO'', FECMODIF = sysdate WHERE FORMAPAGO_ID = 35'; + exception when object_exists then null; +end; \ No newline at end of file