fix: (psycopg2.errors.StringDataRightTruncation) value too long for type character varying(40) Fixes #14593 (#14597)

Co-authored-by: engchina <atjapan2015@gmail.com>
This commit is contained in:
engchinaandengchina authored and GitHub committed 2025-03-03 13:16:51 +08:00
1 parent 8d4136d864
commit cd46ebbb34
2 files changed
+40 -1

No files matched your search

+1 -1
View File
@@ -785,7 +785,7 @@ class DatasetCollectionBinding(db.Model): # type: ignore[name-defined]
)
id = db.Column(StringUUID, primary_key=True, server_default=db.text("uuid_generate_v4()"))
provider_name = db.Column(db.String(40), nullable=False)
provider_name = db.Column(db.String(255), nullable=False)
model_name = db.Column(db.String(255), nullable=False)
type = db.Column(db.String(40), server_default=db.text("'dataset'::character varying"), nullable=False)
collection_name = db.Column(db.String(64), nullable=False)