createTable('{{%interview_log}}', [ 'id' => Schema::TYPE_PK, 'interview_id' => Schema::TYPE_INTEGER . "(11) NOT NULL COMMENT '访谈ID'", 'type' => Schema::TYPE_SMALLINT . "(1) NOT NULL COMMENT '类型'", 'content' => Schema::TYPE_STRING . "(500) NOT NULL COMMENT '内容'", 'created_at' => Schema::TYPE_INTEGER . "(11) NOT NULL", 'updated_at' => Schema::TYPE_INTEGER . "(11) NOT NULL", 'status' => Schema::TYPE_SMALLINT . "(1) NOT NULL DEFAULT '1' COMMENT '状态'", ], $this->tableOptions); } /** * @inheritdoc */ public function down() { $this->dropTable('{{%interview_log}}'); } }