Lint migrations
continuous-integration/drone/push Build is passing Details

This commit is contained in:
philipp lang 2024-08-23 22:25:25 +02:00
parent 5008244de2
commit 11b1e6a198
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ return new class extends Migration
foreach (DB::table('users')->get() as $user) {
[$firstname, $lastname] = explode(' ', $user->name);
DB::table('users')->where('id', $user->id)->update(['firstname' => $firstname ?? '', 'lastname' => $lastname ?? '']);
DB::table('users')->where('id', $user->id)->update(['firstname' => $firstname ?: '', 'lastname' => $lastname ?: '']);
}
Schema::table('users', function (Blueprint $table) {