mirror of
https://github.com/flarum/framework.git
synced 2025-02-02 02:43:00 +08:00
Fix query error
This commit is contained in:
parent
cd4d22e42b
commit
a7f4297214
|
@ -38,7 +38,9 @@ return [
|
|||
continue;
|
||||
}
|
||||
|
||||
$db->table('group_permission')->updateOrInsert($row);
|
||||
if ($db->table('group_permission')->where($row)->doesntExist()) {
|
||||
$db->table('group_permission')->insert($row);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user