Include trashed per @marcusmoore

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-12-19 20:23:19 +00:00
parent 1a0e1b5f6c
commit 5e0128c9dc

View file

@ -27,7 +27,7 @@ class FixLanguageDirs extends Migration
/**
* Update the users table
*/
$users = User::whereNotNull('locale')->whereNull('deleted_at')->get();
$users = User::whereNotNull('locale')->get();
// Skip the model in case the validation rules have changed
foreach ($users as $user) {
DB::table('users')->where('id', $user->id)->update(['locale' => Helper::mapLegacyLocale($user->locale)]);