feat: improve assistant knowledge import and database compatibility
This commit is contained in:
1 parent
fbd8dec48f
commit
6b724bd00d
51 files changed
+4393
-1021
No files matched your search
+25
@@ -0,0 +1,25 @@
|
||||
"""Add assistant knowledge vector table.
|
||||
|
||||
Revision ID: 20260902_01
|
||||
Revises: 20260901_01
|
||||
Create Date: 2026-09-02
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from alembic import op
|
||||
|
||||
from deerflow.persistence.assistant_knowledge.model import AssistantKnowledgeVectorRow
|
||||
|
||||
revision = "20260902_01"
|
||||
down_revision = "20260901_01"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
AssistantKnowledgeVectorRow.__table__.create(op.get_bind(), checkfirst=True)
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
AssistantKnowledgeVectorRow.__table__.drop(op.get_bind(), checkfirst=True)
|
||||
Reference in new issue
Block a user