🎉❤️ Arca ORM now gives you the choice between using UUID or ID as your primary key #5
ipranjal
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
switching to use uuid is as simple as
$db->useUUID()
, it is important to note DO NOT SWITCH BETWEEN USING UUID AND ID ALTERNATIVELY IT WILL CAUSE DB CORRUPTION , while using id works with almost all use case using UUID comes with its own set of benefits. Check this article for some pros and cons. If you want to keep using auto increment as id and want to add uuid to the mix you can do this by just adding uuid to your model before saving.Beta Was this translation helpful? Give feedback.
All reactions