Skip to content

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.

@github-actions
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
@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