mirror of
https://github.com/flarum/framework.git
synced 2025-03-24 23:55:16 +08:00
Remove 'or' from 'orWhereNotExists'
This commit is contained in:
parent
8b9f03e998
commit
7b6c666e7b
@ -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…
x
Reference in New Issue
Block a user