From 8b651a7f6b378df858b293c100d23489d104ff3c Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 22 Feb 2019 09:39:49 +0000 Subject: [PATCH] Bug 21756: (QA follow-up) Add offset_types to database Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall --- installer/data/mysql/atomicupdate/bug_21756.perl | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_21756.perl diff --git a/installer/data/mysql/atomicupdate/bug_21756.perl b/installer/data/mysql/atomicupdate/bug_21756.perl new file mode 100644 index 0000000000..4bfda5334a --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_21756.perl @@ -0,0 +1,13 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO account_offset_types ( type ) VALUES ( 'Account Fee' ); + }); + + $dbh->do(q{ + INSERT IGNORE INTO account_offset_types ( type ) VALUES ( 'Hold Expired' ); + }); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 21756 - Add 'Account Fee' and 'Hold Expired' to the account_offset_types table if missing)\n"; +} -- 2.17.2 (Apple Git-113)