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:
commit
b2d5f5fc4f
@ -309,13 +309,6 @@ class Version210 extends Listener
|
||||
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);
|
||||
|
||||
while ($builder->cursor()->count()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user