Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
13 | public function safeUp() |
||
14 | { |
||
15 | $this->createTable('{{%user}}', [ |
||
16 | 'id' => $this->primaryKey(), |
||
17 | 'username' => $this->string(60)->notNull()->unique(), |
||
18 | 'avatar' => $this->string()->defaultValue(''), |
||
19 | 'email' => $this->string(120)->notNull()->unique(), |
||
20 | 'auth_key' => $this->string()->notNull(), |
||
21 | 'password_hash' => $this->string()->notNull(), |
||
22 | 'password_reset_token' => $this->string()->defaultValue(''), |
||
23 | 'status' => $this->tinyInteger()->defaultValue(0), |
||
24 | 'base_currency_code' => $this->string(3)->notNull(), |
||
25 | 'created_at' => $this->timestamp()->defaultValue(null), |
||
26 | 'updated_at' => $this->timestamp()->defaultValue(null), |
||
27 | ]); |
||
38 |