diff --git a/src/db/migration/V20220204_1758__mantis23939.sql b/src/db/migration/V20220204_1758__mantis23939.sql new file mode 100644 index 000000000..a3df1b059 --- /dev/null +++ b/src/db/migration/V20220204_1758__mantis23939.sql @@ -0,0 +1,17 @@ +declare + column_exists exception; + pragma exception_init (column_exists , -01430); +begin + execute immediate 'alter table ocd_param add(INDOCDFORMAPAGAMENTO NUMBER(1,0))'; + exception when column_exists then null; +end; +/ + +declare + object_exists exception; + pragma exception_init (object_exists , -00955); +begin + execute immediate 'UPDATE ocd_param SET INDOCDFORMAPAGAMENTO=0'; + exception when object_exists then null; +end; +/