mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-01 18:49:27 +02:00
32 lines
770 B
Python
32 lines
770 B
Python
"""Add thread specific model selection
|
|
|
|
Revision ID: 0568ccf46a6b
|
|
Revises: e209dc5a8156
|
|
Create Date: 2024-06-19 14:25:36.376046
|
|
|
|
"""
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "0568ccf46a6b"
|
|
down_revision = "e209dc5a8156"
|
|
branch_labels: None = None
|
|
depends_on: None = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column(
|
|
"chat_session",
|
|
sa.Column("current_alternate_model", sa.String(), nullable=True),
|
|
)
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column("chat_session", "current_alternate_model")
|
|
# ### end Alembic commands ###
|