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
[Bug] Upgrading Blitz to v2.1 - Specified key was too long; max key length is 767 bytes #113
Comments
I'm surprised you were able to install Craft in the first place, as the install migration contains 500 character columns as well. Was this an issue at all? Maybe this answer will help you solve it: https://stackoverflow.com/a/43403017/1769259 |
@putyourlightson Installing craft itself was not an issue at all, I will check out the link you suggested and report back with a workaround if i can figure it out. |
Yes, please do. |
I had this same error on my local dev environment using MAMP 4.5 with MySQL 5.6.x |
@HelgeSverre what is your database character set? |
also, this might be a db change? https://github.com/dektrium/yii2-user/issues/543 |
Have this same issue running MySQL 5.6 in our Docker setup. |
Can someone try switching to innodb on their database server and see if it corrects the issue? |
latin1 |
FYI. I deployed the same project to an existing staging server that was using MySQL 5.6 last night and got the same problem. Provisioned a new server with MySQL 5.7 and everything deployed and updated fine. Wasn't able to try switching to InnoDB. Encoding on local is UTF-8 Unicode (utf8) and on the new box is UTF-8 Unicode (utf8mb4) |
Thanks for the responses. So for anyone still experiencing this, please note that Craft requires MySQL 5.5+ with InnoDB and recommends a default character set of utf8 and collation of utf8_unicode_ci. https://docs.craftcms.com/v3/requirements.html https://docs.craftcms.com/v3/installation.html#step-4-create-a-database |
Hmm, same error here. I run a local dev environment with: XAMPP 7.3.5 Log:
|
@putyourlightson In my case at least my environment(s) meet those requirements. |
It was changed to 500 characters to address an issue someone was having with long URIs. Have changed it back to 255 in version 2.1.1. |
I got the following error when trying to upgrade to Blitz 2.1.0 on a Craft CMS 3.2.0 install
I'm running on MariaDB 10.1.37.
Output from
php craft migrate/all
:Does anyone know of a workaround?
I know that this is a known issue in Laravel land (ref), but I am not quite sure how to fix this in Craft.
The text was updated successfully, but these errors were encountered: