mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 01:29:01 +08:00
chore(models): convert created_by_role to its value for consistency (#9612)
This commit is contained in:
parent
a9db06f5e7
commit
0e965b6529
@ -1109,7 +1109,7 @@ class MessageFile(db.Model):
|
|||||||
self.url = url
|
self.url = url
|
||||||
self.belongs_to = belongs_to
|
self.belongs_to = belongs_to
|
||||||
self.upload_file_id = upload_file_id
|
self.upload_file_id = upload_file_id
|
||||||
self.created_by_role = created_by_role
|
self.created_by_role = created_by_role.value
|
||||||
self.created_by = created_by
|
self.created_by = created_by
|
||||||
|
|
||||||
id: Mapped[str] = db.Column(StringUUID, server_default=db.text("uuid_generate_v4()"))
|
id: Mapped[str] = db.Column(StringUUID, server_default=db.text("uuid_generate_v4()"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user