-- 回滚: 将 series_id 改回 series_allocation_id
ALTER TABLE tb_iot_card RENAME COLUMN series_id TO series_allocation_id;
COMMENT ON COLUMN tb_iot_card.series_allocation_id IS '套餐系列分配ID(关联ShopSeriesAllocation)';

ALTER TABLE tb_device RENAME COLUMN series_id TO series_allocation_id;
COMMENT ON COLUMN tb_device.series_allocation_id IS '套餐系列分配ID(关联ShopSeriesAllocation)';

-- 删除索引（如果存在）
DROP INDEX IF EXISTS idx_shop_series_allocation_shop_series;
