mirror of
https://github.com/flarum/framework.git
synced 2024-11-22 06:33:27 +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')")]);
|
||||
|
||||
$db->table('group_permission')
|
||||
->where('permission', 'LIKE', 'viewUserList')
|
||||
->update(['permission' => $db->raw("REPLACE(permission, 'viewUserList', 'searchUsers')")]);
|
||||
->where('permission', 'viewUserList')
|
||||
->update(['permission' => 'searchUsers']);
|
||||
},
|
||||
|
||||
'down' => function (Builder $schema) {
|
||||
|
@ -30,7 +30,7 @@ return [
|
|||
->update(['permission' => $db->raw("REPLACE(permission, 'viewForum', 'viewDiscussions')")]);
|
||||
|
||||
$db->table('group_permission')
|
||||
->where('permission', 'LIKE', 'searchUsers')
|
||||
->update(['permission' => $db->raw("REPLACE(permission, 'searchUsers', 'viewUserList')")]);
|
||||
->where('permission', 'searchUsers')
|
||||
->update(['permission' => 'viewUserList']);
|
||||
}
|
||||
];
|
||||
|
|
Loading…
Reference in New Issue
Block a user