From c3b43d31565d464bae664a9167b374baf191c834 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 13 Aug 2020 08:00:23 +0000 Subject: [PATCH] Bug 16371: DBRev 20.06.00.023 Signed-off-by: Jonathan Druart --- Koha.pm | 2 +- .../bug_16371-QOTD_for_the_staff_interface.perl | 10 ---------- installer/data/mysql/updatedatabase.pl | 15 +++++++++++++++ 3 files changed, 16 insertions(+), 11 deletions(-) delete mode 100644 installer/data/mysql/atomicupdate/bug_16371-QOTD_for_the_staff_interface.perl diff --git a/Koha.pm b/Koha.pm index eab9021f42..cdee61d6dd 100644 --- 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 index d5bf79c953..0000000000 --- a/installer/data/mysql/atomicupdate/bug_16371-QOTD_for_the_staff_interface.perl +++ /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 "); -} diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 2fd83bfb02..d2bd7cb93f 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -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/'; -- 2.39.5