Bug 29073: DBRev 21.05.05.001
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
parent
881c687fea
commit
82b2a0d91d
3 changed files with 10 additions and 18 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.
|
# - #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
|
# used by developers when the database changes. updatedatabase take care of the changes itself
|
||||||
# and is automatically called by Auth.pm when needed.
|
# and is automatically called by Auth.pm when needed.
|
||||||
$VERSION = "21.05.04.000";
|
$VERSION = "21.05.04.001";
|
||||||
|
|
||||||
sub version {
|
sub version {
|
||||||
return $VERSION;
|
return $VERSION;
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
use Modern::Perl;
|
|
||||||
|
|
||||||
return {
|
|
||||||
bug_number => "29073",
|
|
||||||
description => "Make DefaultHoldExpirationdate use 1/0 values",
|
|
||||||
up => sub {
|
|
||||||
my ($args) = @_;
|
|
||||||
my ($dbh, $out) = @$args{qw(dbh out)};
|
|
||||||
# Do you stuffs here
|
|
||||||
$dbh->do(q{
|
|
||||||
UPDATE systempreferences SET value = IF(value = 'yes',1,0)
|
|
||||||
WHERE variable = 'DefaultHoldExpirationdate';
|
|
||||||
});
|
|
||||||
# Print useful stuff here
|
|
||||||
say $out "DefaultHoldExpirationdate values updated";
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -24471,6 +24471,15 @@ if( CheckVersion( $DBversion ) ) {
|
||||||
NewVersion( $DBversion, "", "Koha 21.05.04 release" );
|
NewVersion( $DBversion, "", "Koha 21.05.04 release" );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$DBversion = '21.05.04.001';
|
||||||
|
if( CheckVersion( $DBversion ) ) {
|
||||||
|
$dbh->do(q{
|
||||||
|
UPDATE systempreferences SET value = IF(value = 'yes',1,0)
|
||||||
|
WHERE variable = 'DefaultHoldExpirationdate';
|
||||||
|
});
|
||||||
|
NewVersion( $DBversion, "29073", "Make DefaultHoldExpirationdate use 1/0 values" );
|
||||||
|
}
|
||||||
|
|
||||||
# SEE bug 13068
|
# SEE bug 13068
|
||||||
# if there is anything in the atomicupdate, read and execute it.
|
# if there is anything in the atomicupdate, read and execute it.
|
||||||
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';
|
my $update_dir = C4::Context->config('intranetdir') . '/installer/data/mysql/atomicupdate/';
|
||||||
|
|
Loading…
Reference in a new issue