task-155(Java 菜单树与 Flyway): 新增 V100 迁移(admin 菜单 route_path 更新)

This commit is contained in:
2026-09-05 18:01:14 +08:00
parent e461ceec2c
commit e88bf5322b
@@ -0,0 +1,24 @@
-- V100: 后台 admin 菜单 route_path 更新为新版 Vue History 路由
-- 仅更新 route_pathcolumn_key / user_column_permission 一律不变(授权标识保持稳定)。
-- 迁移幂等:按 column_key 定位单行更新,重复执行结果一致;不删除任何授权数据。
UPDATE `columns` SET `route_path` = 'account/users'
WHERE `menu_type` = 'admin' AND `column_key` = 'admin_users';
UPDATE `columns` SET `route_path` = 'account/menus'
WHERE `menu_type` = 'admin' AND `column_key` = 'admin_columns';
UPDATE `columns` SET `route_path` = 'account/groups'
WHERE `menu_type` = 'admin' AND `column_key` = 'admin_group_manage';
UPDATE `columns` SET `route_path` = 'asin-center/registry'
WHERE `menu_type` = 'admin' AND `column_key` = 'admin_dedupe_total_data';
UPDATE `columns` SET `route_path` = 'shop-center/shops'
WHERE `menu_type` = 'admin' AND `column_key` = 'admin_shop_manage';
UPDATE `columns` SET `route_path` = 'records/history'
WHERE `menu_type` = 'admin' AND `column_key` = 'admin_history';
UPDATE `columns` SET `route_path` = 'records/software-version'
WHERE `menu_type` = 'admin' AND `column_key` = 'admin_version';