From cb5be6397c3d6472498e39b2ebba0ad7b84e47f5 Mon Sep 17 00:00:00 2001 From: Albert Chen Date: Thu, 12 Sep 2024 00:10:16 +0800 Subject: [PATCH] chore: adopt new anonymous migration class --- ...e.php.php => 2023_08_03_000000_create_users_table.php} | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) rename database/migrations/{2023_08_03_000000_create_users_table.php.php => 2023_08_03_000000_create_users_table.php} (88%) diff --git a/database/migrations/2023_08_03_000000_create_users_table.php.php b/database/migrations/2023_08_03_000000_create_users_table.php similarity index 88% rename from database/migrations/2023_08_03_000000_create_users_table.php.php rename to database/migrations/2023_08_03_000000_create_users_table.php index 7b38f52..59e63ee 100644 --- a/database/migrations/2023_08_03_000000_create_users_table.php.php +++ b/database/migrations/2023_08_03_000000_create_users_table.php @@ -2,11 +2,11 @@ declare(strict_types=1); -use Hyperf\Database\Migrations\Migration; use Hyperf\Database\Schema\Blueprint; -use Hyperf\Database\Schema\Schema; +use Hyperf\Database\Migrations\Migration; +use SwooleTW\Hyperf\Support\Facades\Schema; -class CreateUsersTable extends Migration +return new class extends Migration { /** * Run the migrations. @@ -30,4 +30,4 @@ public function down(): void { Schema::dropIfExists('users'); } -} +}; \ No newline at end of file