-
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/google_drive_oauth # Conflicts: # web/src/app/admin/connectors/[connector]/AddConnectorPage.tsx
- Loading branch information
Showing
128 changed files
with
3,235 additions
and
2,951 deletions.
There are no files selected for viewing
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
57 changes: 57 additions & 0 deletions
57
backend/alembic/versions/bf7a81109301_delete_input_prompts.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,57 @@ | ||
"""delete_input_prompts | ||
Revision ID: bf7a81109301 | ||
Revises: f7a894b06d02 | ||
Create Date: 2024-12-09 12:00:49.884228 | ||
""" | ||
from alembic import op | ||
import sqlalchemy as sa | ||
import fastapi_users_db_sqlalchemy | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = "bf7a81109301" | ||
down_revision = "f7a894b06d02" | ||
branch_labels = None | ||
depends_on = None | ||
|
||
|
||
def upgrade() -> None: | ||
op.drop_table("inputprompt__user") | ||
op.drop_table("inputprompt") | ||
|
||
|
||
def downgrade() -> None: | ||
op.create_table( | ||
"inputprompt", | ||
sa.Column("id", sa.Integer(), autoincrement=True, nullable=False), | ||
sa.Column("prompt", sa.String(), nullable=False), | ||
sa.Column("content", sa.String(), nullable=False), | ||
sa.Column("active", sa.Boolean(), nullable=False), | ||
sa.Column("is_public", sa.Boolean(), nullable=False), | ||
sa.Column( | ||
"user_id", | ||
fastapi_users_db_sqlalchemy.generics.GUID(), | ||
nullable=True, | ||
), | ||
sa.ForeignKeyConstraint( | ||
["user_id"], | ||
["user.id"], | ||
), | ||
sa.PrimaryKeyConstraint("id"), | ||
) | ||
op.create_table( | ||
"inputprompt__user", | ||
sa.Column("input_prompt_id", sa.Integer(), nullable=False), | ||
sa.Column("user_id", sa.Integer(), nullable=False), | ||
sa.ForeignKeyConstraint( | ||
["input_prompt_id"], | ||
["inputprompt.id"], | ||
), | ||
sa.ForeignKeyConstraint( | ||
["user_id"], | ||
["inputprompt.id"], | ||
), | ||
sa.PrimaryKeyConstraint("input_prompt_id", "user_id"), | ||
) |
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.