[odb-users] make integer field autoincrement when it wasn't
MM
finjulhich at gmail.com
Sat Jun 29 10:56:16 EDT 2024
Hi
with sqlite, and class having a uint64_t as an id
#pragma db member(myclass::id) id
I didn't have auto.
But when I add it, odb errors with:
"error: changing object id auto kind in an existing class is not supported
info: consider re-implementing this change by adding a new class with the
desired object id auto kind, migrating the data, and deleting the old class"
I have the pragma for model version (A,B) at the moment,
Can I manually hack around this? ie I edit the old xmls? and then edit the
database myself?
More information about the odb-users
mailing list