| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 18 | 
| Code Lines | 15 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 13 | public function up() | ||
| 14 |     { | ||
| 15 | $tableOptions = null; | ||
| 16 |         if ($this->db->driverName === 'mysql') { | ||
| 17 | $tableOptions = 'CHARACTER SET utf8 COLLATE utf8_general_ci ENGINE=InnoDB'; | ||
| 18 | } | ||
| 19 |         $this->createTable('{{%app_release}}', [ | ||
| 20 | 'id' => $this->primaryKey(), | ||
| 21 |             'version' => $this->string()->notNull()->comment('版本号'), | ||
| 22 |             'is_forced' => $this->boolean()->notNull()->defaultValue(1)->comment('强制更新'), | ||
| 23 |             'url' => $this->string()->notNull()->comment('下载地址'), | ||
| 24 |             'md5' => $this->string()->notNull()->comment('MD5'), | ||
| 25 |             'status' => $this->smallInteger(1)->notNull()->defaultValue(0)->comment('状态'), | ||
| 26 |             'description' => $this->string()->notNull()->comment('发布说明'), | ||
| 27 |             'created_at' => $this->integer()->notNull()->comment('创建时间'), | ||
| 28 |             'updated_at' => $this->integer()->notNull()->comment('更新时间'), | ||
| 29 | ], $tableOptions . ' COMMENT="发布"'); | ||
| 30 | } | ||
| 31 | |||
| 40 |