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

[9.x] Default uuid column name #36005

Merged
merged 1 commit into from
Jan 25, 2021

Conversation

jasonmccreary
Copy link
Contributor

Similar to #35534 and the id() column, this defaults the column name of uuid() to uuid for developer convenience.

Before

$table->uuid('uuid');

After

$table->uuid();

Note: I did not do this for foreignUuid as it uses a column name prefix to establish the related model.

@jasonmccreary
Copy link
Contributor Author

If merged, I'll open a PR for the docs.

@GrahamCampbell GrahamCampbell changed the title Default uuid column name [9.x] Default uuid column name Jan 23, 2021
@taylorotwell taylorotwell merged commit f6640f8 into laravel:master Jan 25, 2021
@jasonmccreary jasonmccreary deleted the default-uuid-name branch March 4, 2021 20:32
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