bogdal / django-gcm

Google Cloud Messaging Server in Django

Home Page:https://django-gcm.readthedocs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can't add unique constraint on reg_id column because it's a TEXT field not VARCHAR on MySQL

kenyee opened this issue · comments

From the change 3 days ago but it only showed up today in our Jenkins builds :-(

Error in migration: vcm:0002_auto__chg_field_device_reg_id__add_unique_device_reg_id
STDERR: FATAL ERROR - The following SQL query failed: ALTER TABLE gcm_device ADD CONSTRAINT gcm_device_reg_id_1d569ade4b517e81_uniq UNIQUE (reg_id)
The error was: (1170, "BLOB/TEXT column 'reg_id' used in key specification without a key length")

I think it has to be turned into a varchar field first...

Hi @kenyee. This was fixed in 1.0.4 version.