From b2afb1a5a437d51831dc5f661f686a88795b74c8 Mon Sep 17 00:00:00 2001 From: "review512jwy@163.com" <“review512jwy@163.com”> Date: Fri, 29 May 2026 17:25:07 +0800 Subject: [PATCH] =?UTF-8?q?dashboard=5Flevel=5Frole=5Fobject=E8=A1=A8ref?= =?UTF-8?q?=5Ftype=E6=9E=9A=E4=B8=BE=E6=8B=86=E5=88=86STORE=E3=80=81AREA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migration/V83__level_role_object_ref_type.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 data-center-business-controller/src/main/resources/db/migration/V83__level_role_object_ref_type.sql diff --git a/data-center-business-controller/src/main/resources/db/migration/V83__level_role_object_ref_type.sql b/data-center-business-controller/src/main/resources/db/migration/V83__level_role_object_ref_type.sql new file mode 100644 index 0000000..0822125 --- /dev/null +++ b/data-center-business-controller/src/main/resources/db/migration/V83__level_role_object_ref_type.sql @@ -0,0 +1,14 @@ +-- 1. 先删除旧枚举数据 +DELETE FROM dashboard_level_role_object +WHERE ref_type = 'STORE_AREA'; + +-- 2. 再修改 ENUM +ALTER TABLE dashboard_level_role_object + MODIFY ref_type + ENUM( + 'BRANCH', + 'STORE', + 'AREA', + 'SITE', + 'BUILDING' + ) NOT NULL; \ No newline at end of file