Bug 18837: DBRev 18.12.00.027
authorNick Clemens <nick@bywatersolutions.com>
Fri, 15 Mar 2019 19:31:45 +0000 (19:31 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 15 Mar 2019 19:33:37 +0000 (19:33 +0000)
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha.pm
installer/data/mysql/atomicupdate/illunmediated_tables.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 8a7d963..113728f 100644 (file)
--- a/Koha.pm
+++ b/Koha.pm
@@ -29,7 +29,7 @@ use vars qw{ $VERSION };
 # - #4 : the developer version. The 4th number is the database subversion.
 #        used by developers when the database changes. updatedatabase take care of the changes itself
 #        and is automatically called by Auth.pm when needed.
-$VERSION = "18.12.00.026";
+$VERSION = "18.12.00.027";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/illunmediated_tables.sql b/installer/data/mysql/atomicupdate/illunmediated_tables.sql
deleted file mode 100644 (file)
index 8bb64bd..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
--- System preferences
-
-INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES
-       ('ILLModuleUnmediated','0','','If enabled, try to immediately progress newly placed ILL requests.','YesNo');
index c46f05f..cdfe8fe 100755 (executable)
@@ -17727,6 +17727,16 @@ if( CheckVersion( $DBversion ) ) {
     print "Upgrade to $DBversion done (Bug 20750 - Allow timestamped auditing of ILL request events)\n";
 }
 
+$DBversion = '18.12.00.027';
+if( CheckVersion( $DBversion ) ) {
+    $dbh->do(q{
+INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES
+       ('ILLModuleUnmediated','0','','If enabled, try to immediately progress newly placed ILL requests.','YesNo');
+    });
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 18837: Add ILLModuleUnmediated Syspref)\n";
+}
+
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.