Bumping the DBrev up
authorBrendan Gallagher <brendan@bywatersolutions.com>
Thu, 31 Dec 2015 18:38:40 +0000 (18:38 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Thu, 31 Dec 2015 18:38:40 +0000 (18:38 +0000)
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
Koha.pm
installer/data/mysql/atomicupdate/bug_13022.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 482ef0e..0904cdb 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 = "3.23.00.011";
+$VERSION = "3.23.00.012";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_13022.sql b/installer/data/mysql/atomicupdate/bug_13022.sql
deleted file mode 100644 (file)
index 88d5a13..0000000
+++ /dev/null
@@ -1 +0,0 @@
-INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('MaxSearchResultsItemsPerRecordStatusCheck','20','Max number of items per record for which to check transit and hold status','','Integer');
index 4da6379..eceeef9 100755 (executable)
@@ -11614,6 +11614,15 @@ if ( CheckVersion($DBversion) ) {
     SetVersion($DBversion);
 }
 
+$DBversion = "3.23.00.012";
+if ( CheckVersion($DBversion) ) {
+    $dbh->do(q{
+       INSERT IGNORE INTO systempreferences ( `variable`, `value`, `explanation`, `options`, `type` ) VALUES('MaxSearchResultsItemsPerRecordStatusCheck','20','Max number of items per record for which to check transit and hold status','','Integer')
+    });
+
+    print "Upgrade to $DBversion done (Bug 15380 - Move the authority types related code to Koha::Authority::Type[s] - part 1)\n";
+    SetVersion($DBversion);
+}
 
 # DEVELOPER PROCESS, search for anything to execute in the db_update directory
 # SEE bug 13068