mirror of
https://github.com/flarum/framework.git
synced 2025-02-11 16:36:14 +08:00
Remove 'or' from 'orWhereNotExists'
This commit is contained in:
parent
19c79c9dd3
commit
2bb554e93b
|
@ -9,7 +9,7 @@ return [
|
|||
// foreign keys without any issues.
|
||||
$connection = $schema->getConnection();
|
||||
$connection->table('posts')
|
||||
->orWhereNotExists(function ($query) {
|
||||
->whereNotExists(function ($query) {
|
||||
$query->selectRaw(1)->from('discussions')->whereColumn('id', 'discussion_id');
|
||||
})
|
||||
->delete();
|
||||
|
|
Loading…
Reference in New Issue
Block a user