From 8ae7a7865e3242496900a590c4408be1e17874ef Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Wed, 8 Mar 2023 01:15:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../2023_03_07_194636_add_trial_ends_at_to_hosts_table.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/database/migrations/2023_03_07_194636_add_trial_ends_at_to_hosts_table.php b/database/migrations/2023_03_07_194636_add_trial_ends_at_to_hosts_table.php index 979d4dc..9bfb782 100644 --- a/database/migrations/2023_03_07_194636_add_trial_ends_at_to_hosts_table.php +++ b/database/migrations/2023_03_07_194636_add_trial_ends_at_to_hosts_table.php @@ -5,7 +5,8 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration { +return new class extends Migration +{ /** * Run the migrations. */ @@ -32,7 +33,7 @@ public function up(): void // 为已有的主机设置默认值 Host::chunk(100, function ($hosts) use (&$count) { $hosts->each(function ($host) use (&$count) { - echo "Migrating {$host->id} ({$host->name})... {$count} left" . PHP_EOL; + echo "Migrating {$host->id} ({$host->name})... {$count} left".PHP_EOL; $host->day_at = $host->created_at->day;