@@ -, +, @@ --- installer/data/mysql/account_credit_types.sql | 2 ++ installer/data/mysql/atomicupdate/bug_23442.perl | 15 +++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_23442.perl --- a/installer/data/mysql/account_credit_types.sql +++ a/installer/data/mysql/account_credit_types.sql @@ -3,4 +3,6 @@ INSERT INTO account_credit_types ( code, description, can_be_added_manually, is_ ('WRITEOFF', 'Writeoff', 0, 1), ('FORGIVEN', 'Forgiven', 1, 1), ('CREDIT', 'Credit', 1, 1), +('DISCOUNT', 'A discount applied to a patrons fine', 0, 1), +('REFUND', 'A refund applied to a patrons fine', 0, 1), ('LOST_RETURN', 'Lost item fee refund', 0, 1); --- a/installer/data/mysql/atomicupdate/bug_23442.perl +++ a/installer/data/mysql/atomicupdate/bug_23442.perl @@ -0,0 +1,15 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if ( CheckVersion($DBversion) ) { + + $dbh->do( + qq{ + INSERT IGNORE INTO account_credit_types (code, description, can_be_added_manually, is_system) + VALUES + ('DISCOUNT', 'A discount applied to a patrons fine', 0, 1), + ('REFUND', 'A refund applied to a patrons fine', 0, 1) + } + ); + + SetVersion($DBversion); + print "Upgrade to $DBversion done (Bug 24080 - Add PAYOUT account_credit_type)\n"; +} --