Bug 30418: (follow-up) Fixes for QA test tools
Sponsored-by: Catalyst IT, New Zealand Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
f4f5d0d2f7
commit
461c0708b0
|
|
@ -237,5 +237,9 @@ __PACKAGE__->add_columns(
|
|||
'+allow_change_from_staff' => { is_boolean => 1 },
|
||||
);
|
||||
|
||||
__PACKAGE__->add_columns(
|
||||
'+allow_change_from_permitted_staff' => { is_boolean => 1 },
|
||||
);
|
||||
|
||||
# You can replace this text with custom code or comments, and it will be preserved on regeneration
|
||||
1;
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ return {
|
|||
my ($args) = @_;
|
||||
my ($dbh, $out) = @$args{qw(dbh out)};
|
||||
|
||||
if( !column_exists( 'virtualshelves', 'allow_change_from_permitted_staff' ) ) {
|
||||
$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?'});
|
||||
if( !column_exists( 'virtualshelves', 'allow_change_from_permitted_staff' ) ) {
|
||||
$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?'});
|
||||
}
|
||||
|
||||
$dbh->do(q{ INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (20, 'edit_public_list_contents', 'Edit public list contents') });
|
||||
$dbh->do(q{ INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (20, 'edit_public_list_contents', 'Edit public list contents') });
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue