-
-
Notifications
You must be signed in to change notification settings - Fork 481
New issue
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
Django App Fails to Migrate with Global AUTO_INCREMENT Keys #4169
Comments
Thinking auto increment might be a red herring here. This error appears to arise when inserting a key value of 0: https://groups.google.com/g/django-users/c/bdC1EuvZzq4 So far I've run all the queries in the migration successfully against Dolt locally, so something stranger is happening. |
That is: something with a foreign key constraint on a table with an auto increment key is getting a value of Does that ring any bells? |
django stack trace of the migration failure:
|
the failing migration is populate_default_status_records This migration stage is responsible for populating the
|
Fixed by #4229 |
nautobot-plugin-version-control can successfully run Django migrations with Dolt
v0.40.26
, but fails onv0.40.27
with errorValueError: The database backend does not accept 0 as a value for AutoField
The text was updated successfully, but these errors were encountered: