| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function safeUp() |
||
| 11 | { |
||
| 12 | $this->createTable('user', [ |
||
| 13 | 'id' => $this->primaryKey(), |
||
| 14 | 'email' => $this->string(255)->notNull(), |
||
| 15 | 'username' => $this->string(255)->notNull(), |
||
| 16 | 'password' => $this->string(255)->notNull(), |
||
| 17 | 'verified' => $this->integer()->defaultValue(0), |
||
| 18 | 'otp_secret' => $this->string(600), |
||
| 19 | 'otp_enabled' => $this->integer()->defaultValue(0), |
||
| 20 | 'created_at' => $this->integer(), |
||
| 21 | 'updated_at' => $this->integer() |
||
| 22 | ]); |
||
| 23 | |||
| 24 | $this->createIndex('user__email_unique_index', 'user', ['email'], true); |
||
| 25 | $this->createIndex('user__username_unique_index', 'user', ['username'], true); |
||
| 26 | } |
||
| 36 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.