Bug 16371: DBRev 20.06.00.023

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2020-08-13 08:00:23 +00:00
parent 504228950f
commit c3b43d3156
3 changed files with 16 additions and 11 deletions

View file

@ -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;

View file

@ -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 ");
}

View file

@ -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/';