Bug 18882: DBRev 17.06.000.027
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
8db65715fa
commit
9d701fe12d
3 changed files with 17 additions and 16 deletions
2
Koha.pm
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.026";
|
||||
$VERSION = "17.06.00.027";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
@ -1,9 +0,0 @@
|
|||
$DBversion = 'XXX';
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
if ( !column_exists( 'statistics', 'location' ) ) {
|
||||
$dbh->do('ALTER TABLE statistics ADD COLUMN location VARCHAR(80) default NULL AFTER itemtype');
|
||||
}
|
||||
|
||||
SetVersion($DBversion);
|
||||
print "Upgrade to $DBversion done (Bug 18882 - Add location code to statistics table for checkouts and renewals)\n";
|
||||
}
|
|
@ -14948,15 +14948,25 @@ if( CheckVersion( $DBversion ) ) {
|
|||
print "Upgrade to $DBversion done (Bug 13178 - Increase cardnumber fields to VARCHAR(32))\n";
|
||||
}
|
||||
|
||||
$DBversion = '17.06.00.026';
|
||||
if( CheckVersion( $DBversion ) ) {
|
||||
$dbversion = '17.06.00.026';
|
||||
if( checkversion( $dbversion ) ) {
|
||||
$dbh->do(q{
|
||||
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
|
||||
('BlockReturnOfLostItems','0','0','If enabled, items that are marked as lost cannot be returned.','YesNo');
|
||||
insert ignore into systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) values
|
||||
('blockreturnoflostitems','0','0','if enabled, items that are marked as lost cannot be returned.','yesno');
|
||||
});
|
||||
|
||||
SetVersion( $DBversion );
|
||||
print "Upgrade to $DBversion done (Bug 10748 - Add system preference BlockReturnOfLostItems)\n";
|
||||
setversion( $dbversion );
|
||||
print "upgrade to $dbversion done (bug 10748 - add system preference blockreturnoflostitems)\n";
|
||||
}
|
||||
|
||||
$dbversion = '17.06.00.027';
|
||||
if( checkversion( $dbversion ) ) {
|
||||
if ( !column_exists( 'statistics', 'location' ) ) {
|
||||
$dbh->do('ALTER TABLE statistics ADD COLUMN location VARCHAR(80) default NULL AFTER itemtype');
|
||||
}
|
||||
|
||||
SetVersion($DBversion);
|
||||
print "Upgrade to $DBversion done (Bug 18882 - Add location code to statistics table for checkouts and renewals)\n";
|
||||
}
|
||||
|
||||
# DEVELOPER PROCESS, search for anything to execute in the db_update directory
|
||||
|
|
Loading…
Reference in a new issue