Skip to content

Commit

Permalink
chore: return old class syntax for migrations for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
WatheqAlshowaiter committed Jul 18, 2024
1 parent 2771547 commit 73bd22b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 73bd22b

Please sign in to comment.