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