vova07 / yii2-start

Yii2-Start application
Other
273 stars 115 forks source link

Migrations Issue #73

Closed ghost closed 9 years ago

ghost commented 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')";

to this (which fixes the issue):

return "INSERT INTO {{%profiles}} (user_id, name, surname, avatar_url) VALUES (1, 'Administration', 'Site', 'dummy.png')";

vova07 commented 9 years ago

Fixed: https://github.com/vova07/yii2-start-users-module/commit/1f2f866c3ffbd3066f87f06d74ecac187c9f42c9 Thanx!