Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: https://github.com/siyuan-note/siyuan/pull/17732

Daniel3d70e65fd677
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 76de43d79f..2bda90b6aa 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -4655,9 +4655,9 @@ func updateAttributeViewColumn(operation *Operation) (err error) {
isPrimaryKey := av.KeyTypeBlock == keyValues.Key.Type
if isPrimaryKey != (av.KeyTypeBlock == colType) {
if isPrimaryKey {
- err = errors.New("cannot change type of primary key column")
+ err = errors.New("cannot change type of primary key field")
} else {
- err = errors.New("cannot change column type to primary key")
+ err = errors.New("cannot change field type to primary key")
}
return
}
@@ -4736,7 +4736,7 @@ func RemoveAttributeViewKey(avID, keyID string, removeRelationDest bool) (err er
return
}
if av.KeyTypeBlock == key.Type {
- err = errors.New("cannot remove primary key column")
+ err = errors.New("cannot remove primary key field")
return
}