user-management
user-management copied to clipboard
mySQL errors
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 TABLE
tbl_auth_assignmentCHANGE
user_id
user_idint(11) NOT NULL AFTER
item_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 TABLE
auth_item_groupCHANGE
code
codevarchar(64) COLLATE 'utf8_unicode_ci' NOT NULL FIRST, CHANGE
name
namevarchar(255) COLLATE 'utf8_unicode_ci' NOT NULL AFTER
code;