ALTER TABLE `blade_mileage_record`
  ADD COLUMN `vehicle_type` varchar(20) NOT NULL DEFAULT '车辆' COMMENT '车船类型' AFTER `tenant_id`,
  MODIFY COLUMN `vehicle_no` varchar(30) NOT NULL COMMENT '车牌号/船号',
  ADD COLUMN `mileage_unit` varchar(10) NOT NULL DEFAULT '公里' COMMENT '里程单位' AFTER `total_mileage`,
  ADD KEY `idx_mileage_record_vehicle_type` (`vehicle_type`) USING BTREE;

UPDATE `blade_menu`
SET `name` = '里程记录'
WHERE `code` = 'mileage_record'
  AND `is_deleted` = 0;
