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

[13.x] Refactor migrations #1759

Merged
merged 4 commits into from
Jun 24, 2024

Conversation

hafezdivandari
Copy link
Contributor

@hafezdivandari hafezdivandari commented Jun 24, 2024

There is no breaking change on this PR, just better migrations for new apps. No need to change/modify columns for existing apps.

Copy link

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@hafezdivandari hafezdivandari marked this pull request as ready for review June 24, 2024 16:40
$table->unsignedBigInteger('user_id')->index();
$table->unsignedBigInteger('client_id');
$table->char('id', 80)->primary();
$table->foreignId('user_id');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why no index here anymore?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the column itself is redundant #1752

@taylorotwell taylorotwell merged commit 1e3fcd9 into laravel:13.x Jun 24, 2024
9 checks passed
@hafezdivandari hafezdivandari deleted the 13.x-refactor-migrations branch June 24, 2024 20:42
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.

2 participants