@@ -, +, @@ --- installer/data/mysql/atomicupdate/bug_23091.perl | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_23091.perl --- a/installer/data/mysql/atomicupdate/bug_23091.perl +++ a/installer/data/mysql/atomicupdate/bug_23091.perl @@ -0,0 +1,7 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + $dbh->do( "UPDATE circulation_rules SET rule_name = 'lostreturn' WHERE rule_name = 'refund'" ); + $dbh->do( "UPDATE circulation_rules SET rule_value = 'refund' WHERE rule_name = 'lostreturn' AND rule_value = 1" ); + + NewVersion( $DBversion, 23091, "Update refund rules"); +} --