Closed ghost closed 9 years ago
While following your getting started guide and running the migrate command for users, an error is thrown because there needs to be a default value for avatar_url. So I had to edit the getProfileSql() function from this:
return "INSERT INTO {{%profiles}} (user_id, name, surname) VALUES (1, 'Administration', 'Site')";
user_id
name
surname
to this (which fixes the issue):
return "INSERT INTO {{%profiles}} (user_id, name, surname, avatar_url) VALUES (1, 'Administration', 'Site', 'dummy.png')";
avatar_url
Fixed: https://github.com/vova07/yii2-start-users-module/commit/1f2f866c3ffbd3066f87f06d74ecac187c9f42c9 Thanx!
While following your getting started guide and running the migrate command for users, an error is thrown because there needs to be a default value for avatar_url. So I had to edit the getProfileSql() function from this:
return "INSERT INTO {{%profiles}} (
user_id
,name
,surname
) VALUES (1, 'Administration', 'Site')";to this (which fixes the issue):
return "INSERT INTO {{%profiles}} (
user_id
,name
,surname
,avatar_url
) VALUES (1, 'Administration', 'Site', 'dummy.png')";