From 73bd22bc6c82918d48e43ecb29f0e77ea2ad5fe4 Mon Sep 17 00:00:00 2001 From: Watheq Alshowaiter Date: Thu, 18 Jul 2024 15:35:55 +0300 Subject: [PATCH] chore: return old class syntax for migrations for backward compatibility --- database/migrations/2024_07_13_090447_create_fathers_table.php | 3 +-- database/migrations/2024_07_13_093048_create_mothers_table.php | 2 +- database/migrations/2024_07_13_100247_create_sons_table.php | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/database/migrations/2024_07_13_090447_create_fathers_table.php b/database/migrations/2024_07_13_090447_create_fathers_table.php index 71583bd..80cb3fd 100644 --- a/database/migrations/2024_07_13_090447_create_fathers_table.php +++ b/database/migrations/2024_07_13_090447_create_fathers_table.php @@ -4,7 +4,7 @@ use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; -return new class extends Migration +class CreateFathersTable extends Migration { public function up(): void { @@ -17,7 +17,6 @@ public function up(): void $table->timestamps(); // created_at, updated_at => ignored because they are nullable $table->softDeletes(); // deleted_at => ignored because it is nullable }); - } public function down(): void diff --git a/database/migrations/2024_07_13_093048_create_mothers_table.php b/database/migrations/2024_07_13_093048_create_mothers_table.php index e618bca..1e6ee93 100644 --- a/database/migrations/2024_07_13_093048_create_mothers_table.php +++ b/database/migrations/2024_07_13_093048_create_mothers_table.php @@ -6,7 +6,7 @@ use Illuminate\Support\Facades\Schema; use WatheqAlshowaiter\ModelRequiredFields\Constants; -return new class extends Migration +class CreateMothersTable extends Migration { public function up(): void { diff --git a/database/migrations/2024_07_13_100247_create_sons_table.php b/database/migrations/2024_07_13_100247_create_sons_table.php index 0593c5a..f694057 100644 --- a/database/migrations/2024_07_13_100247_create_sons_table.php +++ b/database/migrations/2024_07_13_100247_create_sons_table.php @@ -6,7 +6,7 @@ use Illuminate\Support\Facades\Schema; use WatheqAlshowaiter\ModelRequiredFields\Constants; -return new class extends Migration +class CreateSonsTable extends Migration { public function up(): void {