We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serial
piccolo==1.5.0 piccolo_admin==1.3.2 piccolo_api==1.4.0
So I have a table in SQLite:
class Example(Table): number = Serial()
When trying to save it
example = Example() await example.save()
the sqlite error occuring:
sqlite3.IntegrityError: NOT NULL constraint failed: example.number
Apparently piccolo creates serial field as just INTEGER without AUTOINCREMENT which is needed by SQLite.
serial
INTEGER
AUTOINCREMENT
The text was updated successfully, but these errors were encountered:
No branches or pull requests
piccolo==1.5.0
piccolo_admin==1.3.2
piccolo_api==1.4.0
So I have a table in SQLite:
When trying to save it
the sqlite error occuring:
Apparently piccolo creates
serial
field as justINTEGER
withoutAUTOINCREMENT
which is needed by SQLite.The text was updated successfully, but these errors were encountered: