Koha/installer/data/mysql/db_revs/211200027.pl
Fridolin Somers 6d7aa694a9 Bug 26346: DBRev 21.12.00.027
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-04-12 17:13:02 +02:00

18 lines
657 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "26346",
description => "Add allow_change_from_staff to virtualshelves table",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
if ( !column_exists( 'virtualshelves', 'allow_change_from_staff' ) ) {
$dbh->do(q{
ALTER TABLE virtualshelves ADD COLUMN `allow_change_from_staff` tinyint(1) DEFAULT '0' COMMENT 'can staff change contents?'
});
}
$dbh->do(q{
INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (20, 'edit_public_lists', 'Edit public lists')
});
},
};