From 8706a9f8106e5cbcf6c8f31c55937cc7cade667b Mon Sep 17 00:00:00 2001 From: Wu Clan Date: Mon, 17 Nov 2025 21:00:06 +0800 Subject: [PATCH] Fix typos in data rule sql scripts --- backend/sql/mysql/init_snowflake_test_data.sql | 4 ++-- backend/sql/mysql/init_test_data.sql | 4 ++-- backend/sql/postgresql/init_snowflake_test_data.sql | 4 ++-- backend/sql/postgresql/init_test_data.sql | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/sql/mysql/init_snowflake_test_data.sql b/backend/sql/mysql/init_snowflake_test_data.sql index 5146a4d18..1881a2db8 100644 --- a/backend/sql/mysql/init_snowflake_test_data.sql +++ b/backend/sql/mysql/init_snowflake_test_data.sql @@ -108,8 +108,8 @@ values insert into sys_data_rule (id, name, model, `column`, operator, expression, `value`, created_time, updated_time) values -(2048601264035594240, '部门名称等于测试', '部门', 'name', 1, 0, '测试', now(), null), -(2048601264102703104, '父部门 ID 等于 1', '部门', 'parent_id', 0, 0, '1', now(), null); +(2048601264035594240, '部门名称等于测试', 'Dept', 'name', 1, 0, '测试', now(), null), +(2048601264102703104, '父部门 ID 等于 1', 'Dept', 'parent_id', 0, 0, '1', now(), null); insert into sys_data_scope_rule (id, data_scope_id, data_rule_id) values diff --git a/backend/sql/mysql/init_test_data.sql b/backend/sql/mysql/init_test_data.sql index 7dabdf22d..245e88919 100644 --- a/backend/sql/mysql/init_test_data.sql +++ b/backend/sql/mysql/init_test_data.sql @@ -108,8 +108,8 @@ values insert into sys_data_rule (id, name, model, `column`, operator, expression, `value`, created_time, updated_time) values -(1, '部门名称等于测试', '部门', 'name', 1, 0, '测试', now(), null), -(2, '父部门 ID 等于 1', '部门', 'parent_id', 0, 0, '1', now(), null); +(1, '部门名称等于测试', 'Dept', 'name', 1, 0, '测试', now(), null), +(2, '父部门 ID 等于 1', 'Dept', 'parent_id', 0, 0, '1', now(), null); insert into sys_role_data_scope (id, role_id, data_scope_id) values diff --git a/backend/sql/postgresql/init_snowflake_test_data.sql b/backend/sql/postgresql/init_snowflake_test_data.sql index a30989c80..5e02f1d71 100644 --- a/backend/sql/postgresql/init_snowflake_test_data.sql +++ b/backend/sql/postgresql/init_snowflake_test_data.sql @@ -108,8 +108,8 @@ values insert into sys_data_rule (id, name, model, "column", operator, expression, "value", created_time, updated_time) values -(2048601269932785664, '部门名称等于测试', '部门', 'name', 1, 0, '测试', now(), null), -(2048601269999894528, '父部门 ID 等于 1', '部门', 'parent_id', 0, 0, '1', now(), null); +(2048601269932785664, '部门名称等于测试', 'Dept', 'name', 1, 0, '测试', now(), null), +(2048601269999894528, '父部门 ID 等于 1', 'Dept', 'parent_id', 0, 0, '1', now(), null); insert into sys_data_scope_rule (id, data_scope_id, data_rule_id) values diff --git a/backend/sql/postgresql/init_test_data.sql b/backend/sql/postgresql/init_test_data.sql index 644581966..a18da297f 100644 --- a/backend/sql/postgresql/init_test_data.sql +++ b/backend/sql/postgresql/init_test_data.sql @@ -108,8 +108,8 @@ values insert into sys_data_rule (id, name, model, "column", operator, expression, "value", created_time, updated_time) values -(1, '部门名称等于测试', '部门', 'name', 1, 0, '测试', now(), null), -(2, '父部门 ID 等于 1', '部门', 'parent_id', 0, 0, '1', now(), null); +(1, '部门名称等于测试', 'Dept', 'name', 1, 0, '测试', now(), null), +(2, '父部门 ID 等于 1', 'Dept', 'parent_id', 0, 0, '1', now(), null); insert into sys_role_data_scope (id, role_id, data_scope_id) values