Commit ac82906d authored by xiabin's avatar xiabin

添加from

parent 7e8ac033
......@@ -26,7 +26,7 @@ class m160927_104153_users_init extends Migration
'avatar' => $this->string(128)->notNull()->defaultValue(''),
'wx_open_id' => $this->string(32)->defaultValue('')->comment('登录微信id'),
'ip' => $this->string(32)->notNull(),
'from' => $this->init()->unsigned()->defaultValue(0)->comment('0 来自注册 其它为某个user_id'),
'from' => $this->integer()->unsigned()->defaultValue(0)->comment('0 来自注册 其它为某个user_id'),
'created_at' => $this->integer()->notNull(),
'updated_at' => $this->integer()->notNull(),
'logged_at' => $this->integer()->notNull()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment