fix: change column type to string for relation_type (#272) #none

This commit is contained in:
mst 2024-09-11 22:47:03 +09:00 committed by GitHub
parent cd85c4935c
commit 73a476979e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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),
},
)

View File

@ -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),
},
)