mirror of
https://github.com/flarum/framework.git
synced 2025-03-15 00:05:12 +08:00
Remove 'or' from 'orWhereNotExists'
This commit is contained in:
parent
f7feea496d
commit
6448babaa5
@ -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