mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-29 01:10:58 +02:00
* evaluate None to default * fix usage report pagination * update persona defaults * update user preferences * k * validate * update typing * nit * formating nits * fallback to all assistants * update ux + spacing * udpate refresh logic * minor update to refresh * nit * touchup * update starter message * update default live assistant logic --------- Co-authored-by: Yuhong Sun <yuhongsun96@gmail.com>
30 lines
607 B
Python
30 lines
607 B
Python
"""add recent assistants
|
|
|
|
Revision ID: c0fd6e4da83a
|
|
Revises: b72ed7a5db0e
|
|
Create Date: 2024-11-03 17:28:54.916618
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects import postgresql
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "c0fd6e4da83a"
|
|
down_revision = "b72ed7a5db0e"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column(
|
|
"user",
|
|
sa.Column(
|
|
"recent_assistants", postgresql.JSONB(), server_default="[]", nullable=False
|
|
),
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column("user", "recent_assistants")
|