Skip to content

Commit 393ade6

Browse files
Modify migrations that fetched from users table to ignore deleted_at column
1 parent 8b37ab5 commit 393ade6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

database/migrations/2020_07_25_130850_add_plan_column_to_users_table.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function up(): void
1313
$table->string('plan')->after('remember_token');
1414
});
1515

16-
foreach (User::all() as $user) {
16+
foreach (User::withTrashed()->get() as $user) {
1717
$user->update(['plan' => 'standard']);
1818
}
1919
}

0 commit comments

Comments
 (0)