Bug 26346: DBRev 21.12.00.027
[koha.git] / installer / data / mysql / db_revs / 211200027.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "26346",
5     description => "Add allow_change_from_staff to virtualshelves table",
6     up => sub {
7         my ($args) = @_;
8         my ($dbh, $out) = @$args{qw(dbh out)};
9         if ( !column_exists( 'virtualshelves', 'allow_change_from_staff' ) ) {
10             $dbh->do(q{
11                 ALTER TABLE virtualshelves ADD COLUMN `allow_change_from_staff` tinyint(1) DEFAULT '0' COMMENT 'can staff change contents?'
12             });
13         }
14         $dbh->do(q{
15             INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (20, 'edit_public_lists', 'Edit public lists')
16         });
17     },
18 };