Bug 24446: DBRev 20.12.00.020
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
e1b92345cd
commit
80e3bfd376
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 = "20.12.00.019";
|
||||
$VERSION = "20.12.00.020";
|
||||
|
||||
sub version {
|
||||
return $VERSION;
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
$DBversion = 'XXX'; # will be replaced by the RM
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
|
||||
# Update daterequested from datesent for stockrotation
|
||||
$dbh->do(
|
||||
qq{
|
||||
UPDATE
|
||||
`branchtransfers`
|
||||
SET
|
||||
`daterequested` = `datesent`,
|
||||
`datesent` = NULL
|
||||
WHERE
|
||||
`reason` LIKE 'Stockrotation%'
|
||||
AND
|
||||
`datearrived` IS NULL
|
||||
}
|
||||
);
|
||||
|
||||
NewVersion( $DBversion, 24446, "Update stockrotation 'daterequested' field in transfers table" );
|
||||
}
|
||||
|
|
@ -23601,6 +23601,22 @@ if( CheckVersion( $DBversion ) ) {
|
|||
NewVersion( $DBversion, 26057, "Add datecancelled field to branchtransfers");
|
||||
}
|
||||
|
||||
$DBversion = '20.12.00.020';
|
||||
if ( CheckVersion($DBversion) ) {
|
||||
|
||||
# Update daterequested from datesent for stockrotation
|
||||
$dbh->do(q|
|
||||
UPDATE `branchtransfers`
|
||||
SET
|
||||
`daterequested` = `datesent`,
|
||||
`datesent` = NULL
|
||||
WHERE `reason` LIKE 'Stockrotation%'
|
||||
AND `datearrived` IS NULL
|
||||
|);
|
||||
|
||||
NewVersion( $DBversion, 24446, "Update stockrotation 'daterequested' field in transfers table" );
|
||||
}
|
||||
|
||||
# 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/';
|
||||
|
|
|
|||
Loading…
Reference in New Issue