-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/danswer-ai/danswer into fea…
…ture/oauth
- Loading branch information
Showing
145 changed files
with
2,346 additions
and
2,312 deletions.
There are no files selected for viewing
36 changes: 36 additions & 0 deletions
36
backend/alembic/versions/9f696734098f_combine_search_and_chat.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
"""Combine Search and Chat | ||
Revision ID: 9f696734098f | ||
Revises: a8c2065484e6 | ||
Create Date: 2024-11-27 15:32:19.694972 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
# revision identifiers, used by Alembic. | ||
revision = "9f696734098f" | ||
down_revision = "a8c2065484e6" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.alter_column("chat_session", "description", nullable=True) | ||
op.drop_column("chat_session", "one_shot") | ||
op.drop_column("slack_channel_config", "response_type") | ||
|
||
|
||
def downgrade() -> None: | ||
op.execute("UPDATE chat_session SET description = '' WHERE description IS NULL") | ||
op.alter_column("chat_session", "description", nullable=False) | ||
op.add_column( | ||
"chat_session", | ||
sa.Column("one_shot", sa.Boolean(), nullable=False, server_default=sa.false()), | ||
) | ||
op.add_column( | ||
"slack_channel_config", | ||
sa.Column( | ||
"response_type", sa.String(), nullable=False, server_default="citations" | ||
), | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.