diff --git a/backend-java/src/main/resources/db/V100__admin_menu_frontend_routes.sql b/backend-java/src/main/resources/db/V100__admin_menu_frontend_routes.sql new file mode 100644 index 00000000..4f41a9d4 --- /dev/null +++ b/backend-java/src/main/resources/db/V100__admin_menu_frontend_routes.sql @@ -0,0 +1,24 @@ +-- V100: 后台 admin 菜单 route_path 更新为新版 Vue History 路由 +-- 仅更新 route_path,column_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';