fix: 修复 graph_nodes 表 weight 字段缺失问题
- 在 GraphNodes 模型中添加 weight 字段,设置默认值为 1.0 - 修复 Hippocampus.py 中插入 GraphNodes 时缺少 weight 字段的问题 - 解决 sqlite3.IntegrityError: NOT NULL constraint failed: graph_nodes.weight 错误
This commit is contained in:
@@ -361,6 +361,7 @@ class GraphNodes(Base):
|
||||
concept = Column(get_string_field(255), nullable=False, unique=True, index=True)
|
||||
memory_items = Column(Text, nullable=False)
|
||||
hash = Column(Text, nullable=False)
|
||||
weight = Column(Float, nullable=False, default=1.0)
|
||||
created_time = Column(Float, nullable=False)
|
||||
last_modified = Column(Float, nullable=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user