Skip to content

UNIQUE_REG_ID setting doesn't work with MySQL #577

@xzander

Description

@xzander

If I set UNIQUE_REG_ID to True and then run migration 0007_uniquesetting.py, I get an error MySQLdb._exceptions.OperationalError: (1170, "BLOB/TEXT column 'registration_id' used in key specification without a key length"). Django won't fix it according to https://code.djangoproject.com/ticket/2495. And there is a note about the issue in docs https://docs.djangoproject.com/en/2.2/ref/databases/#textfield-limitations

registration_id is TextField in GCMDevice, WNSDevice and WebPushDevice

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions