Skip to content
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

Unique CharField with max_length > 255 not allowed by MySQL #47

Open
nhammond opened this issue Feb 8, 2017 · 0 comments
Open

Unique CharField with max_length > 255 not allowed by MySQL #47

nhammond opened this issue Feb 8, 2017 · 0 comments

Comments

@nhammond
Copy link

nhammond commented Feb 8, 2017

$ ./manage.py migrate
SystemCheckError: System check identified some issues:

ERRORS:
db_mutex.DBMutex.lock_id: (mysql.E001) MySQL does not allow unique CharFields to have a max_length > 255.

This error is fixed by changing max_length to 255 (instead of 256) on the lock_id field in models.py

jherencia added a commit to jherencia/django-db-mutex that referenced this issue Feb 16, 2017
stal12 added a commit to AImageLab-zip/django-db-mutex that referenced this issue Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant