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 19c79c9dd3
commit 2bb554e93b

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