Closed ihipop closed 7 years ago
Hi, thanks for issue. We have plans for change columns/table-names in all our repos. In the next few days we'll start.
@igor-chepurnoi if there was any Break Compatibility
change,Suggest to start a new major version
eg. 2.x to 3.x , I use "^2.2" in composer.json https://getcomposer.org/doc/articles/versions.md#caret
ok, thanks for help
Resolved by #12
Please execute new migration by the following command:
$ php yii migrate --migrationPath=@vendor/yii2mod/yii2-settings/migrations
https://github.com/yii2mod/yii2-settings/blob/0c9160253dc1149b43b9d8d3723d462bf691081d/migrations/m150227_114524_init.php#L28
In Yii2's
TimestampBehavior
,Default$createdAtAttribute
iscamel_case
stylecamel_case
style column name is most common database practise supported byPDO
when writing a
SQL
by hand,camel_case
style can keep the consistency of SQL, to avoid a mixed use ofcamelCase
andcamelcase
TableName
inCamelCase
is unacceptable onconsistency
when deploying among different databases and platforms supported byPDO
This is just a Suggestion