refactor: add version field to ChatflowMemoryVariable table

This commit is contained in:
Stream 2025-09-15 19:27:41 +08:00
parent f4f055fb36
commit e3903f34e4
No known key found for this signature in database
GPG Key ID: 033728094B100D70
1 changed files with 1 additions and 0 deletions

View File

@ -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(