mirror of
https://github.com/Cinnamon/kotaemon.git
synced 2025-06-26 23:19:56 +00:00
fix: change column type to string for relation_type (#272) #none
This commit is contained in:
parent
cd85c4935c
commit
73a476979e
@ -115,7 +115,7 @@ class FileIndex(BaseIndex):
|
||||
"id": Column(Integer, primary_key=True, autoincrement=True),
|
||||
"source_id": Column(String),
|
||||
"target_id": Column(String),
|
||||
"relation_type": Column(Integer),
|
||||
"relation_type": Column(String),
|
||||
"user": Column(Integer, default=1),
|
||||
},
|
||||
)
|
||||
|
@ -83,7 +83,7 @@ def _init_resource(private: bool = True, id: int = 1):
|
||||
"id": Column(Integer, primary_key=True, autoincrement=True),
|
||||
"source_id": Column(String),
|
||||
"target_id": Column(String),
|
||||
"relation_type": Column(Integer),
|
||||
"relation_type": Column(String),
|
||||
"user": Column(Integer, default=1),
|
||||
},
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user