Lint migrations
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5008244de2
commit
11b1e6a198
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue