Closed thalesac closed 8 years ago
@thalesac thanks for reporting this: which is the exact collation for the mysql database and the exact migration number that fails?
Hi @yakky thank you for replying.
The collation is utf8_general_ci
The migration probably is:
Applying djangocms_page_meta.0006_auto_20160423_1859...Traceback (most recent call last):
@thalesac could you test this version https://github.com/nephila/djangocms-page-meta/archive/change_migrations.zip ? This is not a complete fix (admin may look awkward) but just to investigate if I found out the issue
Hi @yakky , I've tested and it didn't work. If you setup a branch for me I can test quickly. Perhaps is the ´'genericmetaattribute'´?
@thalesac could you test the branch "drop_unique"?
Sorry for the delay @yakky Now I've got a different exception:
` Running migrations: Rendering model states... DONE Applying djangocms_page_meta.0006_auto_20160423_1859...Traceback (most recent call last):
(...) File "/mnt/c/Users/thales/projetos/travelo/local/lib/python2.7/site-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler raise errorclass, errorvalue django.db.utils.IntegrityError: (1215, 'Cannot add foreign key constraint') `
Applying djangocms_page_meta.0006_auto_20160423_1859...Traceback (most recent call last): django.db.utils.OperationalError: (1071, 'Specified key was too long; max key length is 3072 bytes')
Same issue as reported above with MySQL version 5.7
@leesolway @thalesac could you test latest drop_unique
commit?
I've been unable to reproduce both errors with mysqlclient==1.3.7, mysql 5.6.30, database created with create database pagemeta2 collate ='utf8_general_ci';
and storage set to innodb;
Hi @yakky , I've tested and now it seems to work fine. I've deleted all tables / migrations and have run 'migrate' again. Thanks for your fix.
@thalesac thanks for the update. I will release a fixed version soon @leesolway did you had the chance to test it?
@yakky I can confirm that the drop_unique branch is working on my setup. Thanks.
@leesolway thanks. Will release a fixed version later today. Thanks both for your testing and feedback
Hi, I'm getting this error when I run migrate. Probably is due to the table name length.
Mysql 5.6.30 Charcode: UTF-8 django.db.utils.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes') Django 1.9