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:
parent
107123fd07
commit
a4f5cc19a1
|
|
@ -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" );
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
@ -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`),
|
||||
|
|
|
|||
Loading…
Reference in New Issue