Bug 23091: Database update
This patch updates the 'refund' circulation rule to be called 'lostreturn' and populates the value with 'refund' where appropriate. Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
c0830466c1
commit
2f7d2e327c
1 changed files with 7 additions and 0 deletions
7
installer/data/mysql/atomicupdate/bug_23091.perl
Normal file
7
installer/data/mysql/atomicupdate/bug_23091.perl
Normal file
|
@ -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");
|
||||
}
|
Loading…
Reference in a new issue