Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add AnonymousMigrationsRector #17

Merged
merged 4 commits into from Oct 1, 2021
Merged

Add AnonymousMigrationsRector #17

merged 4 commits into from Oct 1, 2021

Conversation

zingimmick
Copy link
Contributor

Convert migrations to anonymous classes to prevent duplication of class names.
Ref: laravel/framework#36906, laravel/framework#37352

 use Illuminate\Database\Migrations\Migration;

-class CreateUsersTable extends Migration
+return new class extends Migration
 {
     // ...
-}
+};

@zingimmick zingimmick marked this pull request as ready for review October 1, 2021 06:02
@zingimmick
Copy link
Contributor Author

All checks have passed 🎉 @TomasVotruba it is ready for review.

@TomasVotruba TomasVotruba merged commit 4b0cf31 into driftingly:main Oct 1, 2021
@TomasVotruba
Copy link
Collaborator

Thank you 👍
Kudos for docs rebuild!

@zingimmick zingimmick deleted the anonymous-migrations branch October 2, 2021 06:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants