1
0
mirror of https://github.com/flarum/core.git synced 2025-07-05 17:15:26 +02:00

Remove 'or' from 'orWhereNotExists'

This commit is contained in:
David Sevilla Martin
2019-10-12 15:59:29 -04:00
committed by Daniël Klabbers
parent 8b9f03e998
commit 7b6c666e7b

View File

@ -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();