Bug 16288: (QA followup) Remove the syspref INSERT line
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 13 May 2016 13:07:02 +0000 (10:07 -0300)
committerKyle M Hall <kyle@bywatersolutions.com>
Mon, 16 May 2016 17:14:57 +0000 (17:14 +0000)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
installer/data/mysql/atomicupdate/removeoldsyspref.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/installer/data/mysql/atomicupdate/removeoldsyspref.sql b/installer/data/mysql/atomicupdate/removeoldsyspref.sql
deleted file mode 100644 (file)
index 38f4fff..0000000
+++ /dev/null
@@ -1 +0,0 @@
-DELETE FROM systempreferences where variable = 'EDIInvoicesShippingBudget';
index f69a1d4..761874d 100755 (executable)
@@ -12094,7 +12094,7 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
 }
 
 $DBversion = "3.23.00.045";
-if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
+if ( CheckVersion($DBversion) ) {
 ## Holds details for vendors supplying goods by EDI
    $dbh->do(q{
            CREATE TABLE IF NOT EXISTS vendor_edi_accounts (
@@ -12186,10 +12186,6 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
                    CONSTRAINT efk_branchcode FOREIGN KEY ( branchcode ) REFERENCES branches ( branchcode )
                    ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
            });
-## Syspref budget to hold shipping costs
-   $dbh->do(q{
-           INSERT INTO systempreferences (variable, explanation, type) VALUES('EDIInvoicesShippingBudget','The budget code used to allocate shipping charges to when processing EDI Invoice messages',  'free');
-           });
 
 ## Add a permission for managing EDI
    $dbh->do(q{