Skip to content

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

Open
@nhammond

Description

@nhammond
$ ./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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions