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

php yii app #5

Closed
CarlosKKK opened this issue Sep 21, 2016 · 0 comments
Closed

php yii app #5

CarlosKKK opened this issue Sep 21, 2016 · 0 comments

Comments

@CarlosKKK
Copy link

*** applying m160726_093217_create_user_table
> create table {{%user}} ... done (time: 0.006s)
> create table {{%profile}} ... done (time: 0.010s)
> insert into {{%user}} ... done (time: 0.003s)
> insert into {{%profile}} ...Exception 'yii\db\Exception' with message 'SQLSTATE[HY000]: General error: 1364 Field 'created_at' doesn't have a default value
The SQL being executed was: INSERT INTO yii2cmf_profile (user_id, locale) VALUES (1, 'zh-CN')'

in /app/test/yii2cmf/vendor/yiisoft/yii2/db/Schema.php:633

Error Info:
Array
(
[0] => HY000
[1] => 1364
[2] => Field 'created_at' doesn't have a default value
)

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

2 participants