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 an option uuid_version_id #81

Closed
wants to merge 2 commits into from
Closed

Add an option uuid_version_id #81

wants to merge 2 commits into from

Conversation

robsonek
Copy link
Contributor

Add an option uuid_version_id to set only the version_id in a Model as UUID and leave the primary key as an auto-increment integer.

@overtrue
Copy link
Owner

I don't think it's a popular scene, and I want to keep the package simple enough that you can customize it yourself after ./artisan vendor:publish, you can modify the migration files in your project to do this, and the Version model is also customizable.

@robsonek
Copy link
Contributor Author

Sure. I use this when I have ID in other models as a string, but the key in version table should be integer so that I can easily sort the results. This is only one option, by default set to false

@robsonek robsonek closed this Jul 23, 2024
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