Skip to content

Commit

Permalink
limit splitting of display_name
Browse files Browse the repository at this point in the history
  • Loading branch information
alexweissman committed Nov 26, 2017
1 parent 081f3f0 commit 802d53e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bakery/Upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ protected function migrateUsers($tableName)
$legacyRows = DB::connection()->table($tableName)->get();

foreach ($legacyRows as $legacyRow) {
list($firstName, $lastName) = explode(' ', $legacyRow->display_name);
list($firstName, $lastName) = explode(' ', $legacyRow->display_name, 1);

DB::connection()->table('users')->insert([
'id' => $legacyRow->id,
Expand Down

0 comments on commit 802d53e

Please sign in to comment.