Closed tomciopp closed 1 month ago
Hi @tomciopp,
If I remember correctly it works like that with Ecto.UUID
as well. The issue would be that bigserial
from Postgres / other database generates the primary key in the database rather than in the application.
Let me know if it's not the case.
So this is a bit of a weird failure, but if you have not set the id when inserting multiple records the id will not be generated and the insert will fail.
Something like this is broken with UUIDv7
The fix is this:
But I'm unsure if this is something that is broken in uuidv7 or I was relying on some behavior that I do not understand.