Skip to content
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

mySQL errors #212

Open
mSnus opened this issue Mar 26, 2020 · 0 comments
Open

mySQL errors #212

mSnus opened this issue Mar 26, 2020 · 0 comments

Comments

@mSnus
Copy link

mSnus commented Mar 26, 2020

Just had two errors:

1st) Migration failed because key types were not exactly the same (key and foreighn key).
Had to set correct type:
ALTER TABLEtbl_auth_assignmentCHANGEuser_id user_idint(11) NOT NULL AFTERitem_name;

2nd) Query failed because it was trying to compare keys with different collations, utf8_general and utf8_unicode. Fixed by casting to same type:
ALTER TABLEauth_item_groupCHANGEcode codevarchar(64) COLLATE 'utf8_unicode_ci' NOT NULL FIRST, CHANGEname namevarchar(255) COLLATE 'utf8_unicode_ci' NOT NULL AFTERcode;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant