View | Details | Raw Unified | Return to bug 30418
Collapse All | Expand All

(-)a/Koha/Schema/Result/Virtualshelve.pm (+4 lines)
Lines 237-241 __PACKAGE__->add_columns( Link Here
237
    '+allow_change_from_staff' => { is_boolean => 1 },
237
    '+allow_change_from_staff' => { is_boolean => 1 },
238
);
238
);
239
239
240
__PACKAGE__->add_columns(
241
    '+allow_change_from_permitted_staff' => { is_boolean => 1 },
242
);
243
240
# You can replace this text with custom code or comments, and it will be preserved on regeneration
244
# You can replace this text with custom code or comments, and it will be preserved on regeneration
241
1;
245
1;
(-)a/installer/data/mysql/atomicupdate/bug_30418.pl (-4 / +3 lines)
Lines 7-16 return { Link Here
7
        my ($args) = @_;
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
9
10
	if( !column_exists( 'virtualshelves', 'allow_change_from_permitted_staff' ) ) {
10
        if( !column_exists( 'virtualshelves', 'allow_change_from_permitted_staff' ) ) {
11
	    $dbh->do(q{ALTER TABLE virtualshelves ADD COLUMN `allow_change_from_permitted_staff` tinyint(1) DEFAULT '0' COMMENT 'can staff with edit_public_list_contents permission change contents?'});
11
            $dbh->do(q{ALTER TABLE virtualshelves ADD COLUMN `allow_change_from_permitted_staff` tinyint(1) DEFAULT '0' COMMENT 'can staff with edit_public_list_contents permission change contents?'});
12
        }
12
        }
13
13
14
	$dbh->do(q{ INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (20, 'edit_public_list_contents', 'Edit public list contents') });
14
        $dbh->do(q{ INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (20, 'edit_public_list_contents', 'Edit public list contents') });
15
    },
15
    },
16
};
16
};
17
- 

Return to bug 30418