Bug 41649: Add sip_magnetic field to itemtypes table
This patch adds the new sip_magnetic boolean flag field to the itemtypes table to allow flagging the itemtype as magnetic for sip responses. Sponsored-by: OpenFifth <https://openfifth.co.uk/> Signed-off-by: Marcus Michel <marcus.michel@rbkc.gov.uk> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
parent
303deda8d3
commit
5968bf0468
|
|
@ -0,0 +1,24 @@
|
|||
use Modern::Perl;
|
||||
use Koha::Installer::Output qw(say_warning say_success say_info);
|
||||
|
||||
return {
|
||||
bug_number => "41649",
|
||||
description => "Add sip_magnetic column to itemtypes table for SIP media handling",
|
||||
up => sub {
|
||||
my ($args) = @_;
|
||||
my ( $dbh, $out ) = @$args{qw(dbh out)};
|
||||
|
||||
# Add sip_magnetic column to itemtypes table
|
||||
unless ( column_exists( 'itemtypes', 'sip_magnetic' ) ) {
|
||||
$dbh->do(
|
||||
q{
|
||||
ALTER TABLE itemtypes
|
||||
ADD COLUMN sip_magnetic TINYINT(1) NOT NULL DEFAULT 0
|
||||
COMMENT 'Indicates if items of this type are magnetic media for SIP'
|
||||
AFTER sip_media_type
|
||||
}
|
||||
);
|
||||
say_success( $out, "Added column 'itemtypes.sip_magnetic'" );
|
||||
}
|
||||
},
|
||||
};
|
||||
|
|
@ -4391,6 +4391,7 @@ CREATE TABLE `itemtypes` (
|
|||
`checkinmsg` varchar(255) DEFAULT NULL COMMENT 'message that is displayed when an item with the given item type is checked in',
|
||||
`checkinmsgtype` char(16) NOT NULL DEFAULT 'message' COMMENT 'type (CSS class) for the checkinmsg, can be ''alert'' or ''message''',
|
||||
`sip_media_type` varchar(3) DEFAULT NULL COMMENT 'SIP2 protocol media type for this itemtype',
|
||||
`sip_magnetic` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Indicates if items of this type are magnetic media for SIP',
|
||||
`hideinopac` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Hide the item type from the search options in OPAC',
|
||||
`searchcategory` varchar(80) DEFAULT NULL COMMENT 'Group this item type with others with the same value on OPAC search options',
|
||||
`automatic_checkin` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'If automatic checkin is enabled for items of this type',
|
||||
|
|
|
|||
Loading…
Reference in New Issue