Replies: 1 comment 1 reply
-
you have specified notNull in autoincrement column, just remove |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm trying to update the DB schema incrementing the version number to create a new table defined like so:
Then I try to fill the new table with some values (not specifying the 'id' value, because autoIncrement is true):
db.insert({into:"newtable", values:[{"field":"test"}]})
but it returns me:
{message: "Null value is not allowed for column 'id'", type: "null_value"}
What am I doing wrong?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions