Bug 19038: DBRev 17.06.00.022

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2017-10-25 16:50:34 -03:00
parent 7d2cb42dce
commit 96a3ee5e06
3 changed files with 22 additions and 22 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 = "17.06.00.021";
$VERSION = "17.06.00.022";
sub version {
return $VERSION;

View File

@ -1,21 +0,0 @@
$DBversion = 'XXX';
if( CheckVersion( $DBversion ) ) {
my $hide_barcode = C4::Context->preference('OPACShowBarcode') ? 0 : 1;
$dbh->do(q{
DELETE FROM systempreferences
WHERE
variable='OPACShowBarcode'
});
# Configure column visibility if it isn't
$dbh->do(q{
INSERT IGNORE INTO columns_settings
(module,page,tablename,columnname,cannot_be_toggled,is_hidden)
VALUES
('opac','biblio-detail','holdingst','item_barcode',0,?)
}, undef, $hide_barcode);
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 19038: Remove OPACShowBarcode syspref)\n";
}

View File

@ -14883,6 +14883,27 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (Bug 17381 - Add system preference SCOMainUserBlock)\n";
}
$DBversion = '17.06.00.022';
if( CheckVersion( $DBversion ) ) {
my $hide_barcode = C4::Context->preference('OPACShowBarcode') ? 0 : 1;
$dbh->do(q{
DELETE FROM systempreferences
WHERE
variable='OPACShowBarcode'
});
# Configure column visibility if it isn't
$dbh->do(q{
INSERT IGNORE INTO columns_settings
(module,page,tablename,columnname,cannot_be_toggled,is_hidden)
VALUES
('opac','biblio-detail','holdingst','item_barcode',0,?)
}, undef, $hide_barcode);
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 19038: Remove OPACShowBarcode syspref)\n";
}
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068
# if there is anything in the atomicupdate, read and execute it.