I have diferents logs, and legacy tables. I need merge, and I will generate log offline.
How can I change the primary key.
Hey,
you will have to override the model, register your new one in the config and update the migration.
After this your activities will get a uuid instead of an autoincrement.
This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days
Do you intend to develop something to facilitate this in the future, something configurable?
Because there is a simple to implement solution we won't add any uses_uuid or similar config value.
If there's any code part in the package that assumes that the ID is an int we will try to fix this to make this change easier. But none of the spatie packages provides UUID primary key support out of the box.
That's why we publish the migration and allow to override the model.
Thanks.
Most helpful comment
Hey,
you will have to override the model, register your new one in the config and update the migration.
After this your activities will get a uuid instead of an autoincrement.