Bug 21728: Add 'Reserve Fee' to the account_offset_types
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 30 Nov 2018 19:45:19 +0000 (19:45 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 4 Mar 2019 19:08:29 +0000 (19:08 +0000)
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

installer/data/mysql/atomicupdate/bug_21728_add_accountoffset_reserve.perl [new file with mode: 0644]

diff --git a/installer/data/mysql/atomicupdate/bug_21728_add_accountoffset_reserve.perl b/installer/data/mysql/atomicupdate/bug_21728_add_accountoffset_reserve.perl
new file mode 100644 (file)
index 0000000..c8014dc
--- /dev/null
@@ -0,0 +1,9 @@
+$DBversion = 'XXX';  # will be replaced by the RM
+if( CheckVersion( $DBversion ) ) {
+    $dbh->do(q{
+        INSERT IGNORE INTO account_offset_types ( type ) VALUES ( 'Reserve Fee' );
+    });
+
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 21728 - Add 'Reserve Fee' to the account_offset_types table if missing)\n";
+}