mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:41:49 +08:00
Remove LIKE
and raw from viewUserList rename
This commit is contained in:
parent
557fc2cd39
commit
4a5b84d2e7
|
@ -18,8 +18,8 @@ return [
|
||||||
->update(['permission' => $db->raw("REPLACE(permission, 'viewDiscussions', 'viewForum')")]);
|
->update(['permission' => $db->raw("REPLACE(permission, 'viewDiscussions', 'viewForum')")]);
|
||||||
|
|
||||||
$db->table('group_permission')
|
$db->table('group_permission')
|
||||||
->where('permission', 'LIKE', 'viewUserList')
|
->where('permission', 'viewUserList')
|
||||||
->update(['permission' => $db->raw("REPLACE(permission, 'viewUserList', 'searchUsers')")]);
|
->update(['permission' => 'searchUsers']);
|
||||||
},
|
},
|
||||||
|
|
||||||
'down' => function (Builder $schema) {
|
'down' => function (Builder $schema) {
|
||||||
|
@ -30,7 +30,7 @@ return [
|
||||||
->update(['permission' => $db->raw("REPLACE(permission, 'viewForum', 'viewDiscussions')")]);
|
->update(['permission' => $db->raw("REPLACE(permission, 'viewForum', 'viewDiscussions')")]);
|
||||||
|
|
||||||
$db->table('group_permission')
|
$db->table('group_permission')
|
||||||
->where('permission', 'LIKE', 'searchUsers')
|
->where('permission', 'searchUsers')
|
||||||
->update(['permission' => $db->raw("REPLACE(permission, 'searchUsers', 'viewUserList')")]);
|
->update(['permission' => 'viewUserList']);
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user