hasTable('wx_push_result_log')) { $table = $this->table('wx_push_result_log'); $table ->addColumn('alarm_id', 'integer', ['limit' => MysqlAdapter::INT_REGULAR,'null' => true,'signed' => true,'comment' => '告警记录id',]) ->addColumn('alarm_type', 'string', ['limit' => 32,'null' => true,'signed' => true,'comment' => '告警类型',]) ->update(); } } }