mirror of
https://github.com/flarum/framework.git
synced 2025-02-11 21:28:46 +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.
|
// foreign keys without any issues.
|
||||||
$connection = $schema->getConnection();
|
$connection = $schema->getConnection();
|
||||||
$connection->table('posts')
|
$connection->table('posts')
|
||||||
->orWhereNotExists(function ($query) {
|
->whereNotExists(function ($query) {
|
||||||
$query->selectRaw(1)->from('discussions')->whereColumn('id', 'discussion_id');
|
$query->selectRaw(1)->from('discussions')->whereColumn('id', 'discussion_id');
|
||||||
})
|
})
|
||||||
->delete();
|
->delete();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user