| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function safeUp() |
||
| 14 | { |
||
| 15 | $this->createTable('{{%mailer_domains}}', [ |
||
| 16 | 'id' => $this->primaryKey(), |
||
| 17 | 'name' => $this->string(50)->notNull(), |
||
| 18 | ], self::TABLE_OPTION); |
||
| 19 | $this->createTable('{{%mailer_users}}', [ |
||
| 20 | 'id' => $this->primaryKey(), |
||
| 21 | 'domain_id' => $this->integer()->notNull(), |
||
| 22 | 'email' => $this->string(120)->unique()->notNull(), |
||
| 23 | 'password' => $this->string(106)->notNull(), |
||
| 24 | ], self::TABLE_OPTION); |
||
| 25 | $this->createTable('{{%mailer_aliases}}', [ |
||
| 26 | 'id' => $this->primaryKey(), |
||
| 27 | 'domain_id' => $this->integer()->notNull(), |
||
| 28 | 'source' => $this->string(100)->notNull(), |
||
| 29 | 'destination' => $this->string(100)->notNull(), |
||
| 30 | ], self::TABLE_OPTION); |
||
| 31 | } |
||
| 43 |