Bug 13287: DBRev 17.12.00.021
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 26 Feb 2018 16:23:38 +0000 (13:23 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 26 Feb 2018 16:24:46 +0000 (13:24 -0300)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha.pm
installer/data/mysql/atomicupdate/bug_13287_AddPurgeSuggestionsOlderThan_SystemPreference.sql [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index 8c737f8..211db4b 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 = "17.12.00.020";
+$VERSION = "17.12.00.021";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_13287_AddPurgeSuggestionsOlderThan_SystemPreference.sql b/installer/data/mysql/atomicupdate/bug_13287_AddPurgeSuggestionsOlderThan_SystemPreference.sql
deleted file mode 100644 (file)
index 6c66bbc..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
-('PurgeSuggestionsOlderThan', '', NULL, 'If this script is called without the days parameter', 'Integer');
index 5436db9..d85bb0e 100755 (executable)
@@ -15601,6 +15601,18 @@ if( CheckVersion( $DBversion ) ) {
     print "Upgrade to $DBversion done (Bug 20082 - Update descriptions of Vietnamese language)\n";
 }
 
+$DBversion = '17.12.00.021';
+if( CheckVersion( $DBversion ) ) {
+
+    $dbh->do(q|
+        INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
+        ('PurgeSuggestionsOlderThan', '', NULL, 'Default value for cronjob purge_suggestions.pl', 'Integer');
+    |);
+
+    SetVersion( $DBversion );
+    print "Upgrade to $DBversion done (Bug 19290 - Add system preference BrowseResultSelection)\n";
+}
+
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.