mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-05-03 16:30:21 +02:00
* add custom headers * add tool seeding * squash * tmep * validated * rm * update typing * update alembic * update import name * reformat * alembic
27 lines
554 B
Python
27 lines
554 B
Python
"""add custom headers to tools
|
|
|
|
Revision ID: f32615f71aeb
|
|
Revises: bd2921608c3a
|
|
Create Date: 2024-09-12 20:26:38.932377
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
from sqlalchemy.dialects import postgresql
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "f32615f71aeb"
|
|
down_revision = "bd2921608c3a"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column(
|
|
"tool", sa.Column("custom_headers", postgresql.JSONB(), nullable=True)
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column("tool", "custom_headers")
|