Skip to content

Commit

Permalink
Modify migrations that fetched from users table to ignore deleted_at …
Browse files Browse the repository at this point in the history
…column
  • Loading branch information
range-of-motion committed Aug 21, 2020
1 parent 8b37ab5 commit 393ade6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function up(): void
$table->string('plan')->after('remember_token');
});

foreach (User::all() as $user) {
foreach (User::withTrashed()->get() as $user) {
$user->update(['plan' => 'standard']);
}
}
Expand Down

0 comments on commit 393ade6

Please sign in to comment.