Browse Source

Bug 19028: DBRev 17.06.00.020

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
17.11.x
Jonathan Druart 7 years ago
parent
commit
c2b9b3f831
  1. 2
      Koha.pm
  2. 15
      installer/data/mysql/atomicupdate/bug_19028_shelving_location_column.perl
  3. 17
      installer/data/mysql/updatedatabase.pl

2
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.06.00.019";
$VERSION = "17.06.00.020";
sub version {
return $VERSION;

15
installer/data/mysql/atomicupdate/bug_19028_shelving_location_column.perl

@ -1,15 +0,0 @@
$DBversion = 'XXX';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
UPDATE systempreferences
SET
variable='OpacLocationOnDetail',
options='holding|home|both|column',
explanation='In the OPAC detail, display the shelving location on its own column or under a library columns.'
WHERE
variable='OpacLocationBranchToDisplayShelving'
});
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 19028: Add 'shelving location' to holdings table in detail page)\n";
}

17
installer/data/mysql/updatedatabase.pl

@ -14857,6 +14857,23 @@ if( CheckVersion( $DBversion ) ) {
print "Upgrade to $DBversion done (Bug 12768 - Add 'Processing Fee' to the account_offset_types table if missing)";
}
$DBversion = '17.06.00.020';
if( CheckVersion( $DBversion ) ) {
$dbh->do(q{
UPDATE systempreferences
SET
variable='OpacLocationOnDetail',
options='holding|home|both|column',
explanation='In the OPAC detail, display the shelving location on its own column or under a library columns.'
WHERE
variable='OpacLocationBranchToDisplayShelving'
});
SetVersion( $DBversion );
print "Upgrade to $DBversion done (Bug 19028: Add 'shelving location' to holdings table in detail page (Rename syspref OpacLocationBranchToDisplayShelving with OpacLocationOnDetail))\n";
}
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
# SEE bug 13068

Loading…
Cancel
Save