-
Notifications
You must be signed in to change notification settings - Fork 71
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.db.utils.IntegrityError when migrating a Postgres database. #36
Comments
can confirm this... |
Same here |
facing same issue. |
Appears to have something to do with @jpwatts what is the benefit of overriding |
It tells the database that it's a |
Just tested it again, and it still happens. |
It seems that Django migrations is likely using the default value of |
Using kwarg |
You can simply change each negative value from your Database manually or create a function for that. This works for me. |
Trying to upgrade a small Postgres database with the added PositionField.
Using Django 1.7 with its new built-in migrations.
django.db.utils.IntegrityError: check constraint "minisites_page_position_check" is violated by some row
I eventually ditched this app and used s plain IntegerField instead (sadly)
The text was updated successfully, but these errors were encountered: