Bug 41983: Add hold_group_id column to tmp_holdsqueue table

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Andrew Fuerste Henry <andrew@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Pedro Amorim 2026-04-06 15:13:30 +00:00 committed by Lucas Gass
parent 107123fd07
commit a4f5cc19a1
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,21 @@
use Modern::Perl;
use Koha::Installer::Output qw(say_warning say_success say_info);
return {
bug_number => "41983",
description => "Add hold_group_id to tmp_holdsqueue",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
if ( !column_exists( 'tmp_holdsqueue', 'hold_group_id' ) ) {
$dbh->do(
q{
ALTER TABLE tmp_holdsqueue
ADD COLUMN hold_group_id int(11) DEFAULT NULL AFTER notes
}
);
say_success( $out, "Added hold_group_id to tmp_holdsqueue" );
}
},
};

View File

@ -6887,6 +6887,7 @@ CREATE TABLE `tmp_holdsqueue` (
`holdingbranch` varchar(10) DEFAULT NULL,
`pickbranch` varchar(10) DEFAULT NULL,
`notes` mediumtext DEFAULT NULL,
`hold_group_id` int(10) unsigned DEFAULT NULL,
`item_level_request` tinyint(4) NOT NULL DEFAULT 0,
`timestamp` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT 'date and time this entry as added/last updated',
PRIMARY KEY (`itemnumber`),