Bug 16371: DBRev 20.06.00.023
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 13 Aug 2020 08:00:23 +0000 (08:00 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 13 Aug 2020 08:15:34 +0000 (10:15 +0200)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Koha.pm
installer/data/mysql/atomicupdate/bug_16371-QOTD_for_the_staff_interface.perl [deleted file]
installer/data/mysql/updatedatabase.pl

diff --git a/Koha.pm b/Koha.pm
index eab9021..cdee61d 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 = "20.06.00.022";
+$VERSION = "20.06.00.023";
 
 sub version {
     return $VERSION;
diff --git a/installer/data/mysql/atomicupdate/bug_16371-QOTD_for_the_staff_interface.perl b/installer/data/mysql/atomicupdate/bug_16371-QOTD_for_the_staff_interface.perl
deleted file mode 100644 (file)
index d5bf79c..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-$DBversion = 'XXX'; # will be replaced by the RM
-if( CheckVersion( $DBversion ) ) {
-    # you can use $dbh here like:
-    # $dbh->do( "ALTER TABLE biblio ADD COLUMN badtaste int" );
-
-    $dbh->do( "UPDATE systempreferences SET value = '', options = 'intranet,opac', explanation = 'Enable or disable display of Quote of the Day on the OPAC and staff interface home page', type = 'multiple' WHERE variable = 'QuoteOfTheDay'" );
-
-    # Always end with this (adjust the bug info)
-    NewVersion( $DBversion, 16371, "Bug 16371 - Quote of the Day (QOTD) for the staff interface ");
-}
index 2fd83bf..d2bd7cb 100755 (executable)
@@ -22573,6 +22573,21 @@ if( CheckVersion( $DBversion ) ) {
     NewVersion( $DBversion, 21946, "Add parent type to itemtypes" );
 }
 
+$DBversion = '20.06.00.023';
+if( CheckVersion( $DBversion ) ) {
+
+    $dbh->do( q|
+        UPDATE systempreferences
+        SET value = '',
+            options = 'intranet,opac',
+            explanation = 'Enable or disable display of Quote of the Day on the OPAC and staff interface home page',
+            type = 'multiple'
+        WHERE variable = 'QuoteOfTheDay'
+    | );
+
+    NewVersion( $DBversion, 16371, "Quote of the Day (QOTD) for the staff interface " );
+}
+
 # SEE bug 13068
 # if there is anything in the atomicupdate, read and execute it.
 my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';