Merge pull request #1701 from pavel-mironchik/duplicate-code

Delete lines that duplicate removing the 'id' column from the migrati…
This commit is contained in:
Cüneyt Şentürk 2020-12-29 14:48:34 +03:00 committed by GitHub
commit b2d5f5fc4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -309,13 +309,6 @@ class Version210 extends Listener
return $column; return $column;
}); });
// Remove only primary keys
if (!in_array($new_table, ['document_items', 'documents'])) {
$selectColumns = $selectColumns->reject(function ($value) {
return $value === 'id';
});
}
$builder = DB::table($table)->selectRaw($selectColumns->implode(','))->limit($limit)->offset($offset); $builder = DB::table($table)->selectRaw($selectColumns->implode(','))->limit($limit)->offset($offset);
while ($builder->cursor()->count()) { while ($builder->cursor()->count()) {