mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-03 19:49:17 +02:00
* add admin page * credential + typing fix * rebase fix * on add, cleaner buttons * functional G + Ddrive * organized auth sections * update types and remove logs * ccs -> connectors * validated formik * update styling + connector-handling logic * udpate colors * separate out hooks + util functions * update to adhere to rest standards * remove "todos" * rebase * copy + formatting + sidebar * update statuses + configuration possibilities * update interfaces to be clearer * update indexing status page * formatting * address backend security + comments * update font * fix form routing * fix hydration error * add statuses, fix bugs, etc. (squash) * fix color (squash) * squash * add functionality to sidebar * disblae buttons if deleting * add color * minor copy + formatting updates - on modify credential, close - update copy for deletion of connectors * fix build error * copy --------- Co-authored-by: Yuhong Sun <yuhongsun96@gmail.com>
27 lines
514 B
Python
27 lines
514 B
Python
"""add expiry time
|
|
|
|
Revision ID: 91ffac7e65b3
|
|
Revises: bc9771dccadf
|
|
Create Date: 2024-06-24 09:39:56.462242
|
|
|
|
"""
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "91ffac7e65b3"
|
|
down_revision = "795b20b85b4b"
|
|
branch_labels: None = None
|
|
depends_on: None = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column(
|
|
"user", sa.Column("oidc_expiry", sa.DateTime(timezone=True), nullable=True)
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column("user", "oidc_expiry")
|