Bug 18958: DBRev 20.05.04.002

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Lucas Gass 2020-10-16 16:52:04 +00:00
parent bac2e6892a
commit 7e9a282e43
3 changed files with 11 additions and 10 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 = "20.05.04.001";
$VERSION = "20.05.04.002";
sub version {
return $VERSION;

View File

@ -1,9 +0,0 @@
$DBversion = 'XXX'; # will be replaced by the RM
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'hold_fill_targets', 'reserve_id' ) ) {
$dbh->do( "ALTER TABLE hold_fill_targets ADD COLUMN reserve_id int(11) DEFAULT NULL AFTER item_level_request" );
}
NewVersion( $DBversion, 18958, "Add reserve_id to hold_fill_targets");
}

View File

@ -22409,6 +22409,16 @@ if( CheckVersion( $DBversion ) ) {
NewVersion( $DBversion, 24807, "Add 'year' type to improve sorting behaviour" );
}
$DBversion = '20.05.04.002';
if( CheckVersion( $DBversion ) ) {
if( !column_exists( 'hold_fill_targets', 'reserve_id' ) ) {
$dbh->do( "ALTER TABLE hold_fill_targets ADD COLUMN reserve_id int(11) DEFAULT NULL AFTER item_level_request" );
}
NewVersion( $DBversion, 18958, "Add reserve_id to hold_fill_targets");
}
# 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/';