mirror of https://github.com/langgenius/dify.git
refactor: add version field to ChatflowMemoryVariable table
This commit is contained in:
parent
f4f055fb36
commit
e3903f34e4
|
|
@ -25,6 +25,7 @@ class ChatflowMemoryVariable(Base):
|
|||
name: Mapped[str] = mapped_column(sa.Text, nullable=False)
|
||||
scope: Mapped[str] = mapped_column(sa.String(10), nullable=False) # 'app' or 'node'
|
||||
term: Mapped[str] = mapped_column(sa.String(20), nullable=False) # 'session' or 'persistent'
|
||||
version: Mapped[int] = mapped_column(sa.Integer, nullable=False, default=1)
|
||||
|
||||
created_at: Mapped[datetime] = mapped_column(DateTime, nullable=False, server_default=func.current_timestamp())
|
||||
updated_at: Mapped[datetime] = mapped_column(
|
||||
|
|
|
|||
Loading…
Reference in New Issue