gitscope
← marzneshin / nightly / app/db/migrations/versions/20241009_1992c49c5990_add_sub_revoked_at.py
https://dev.kronoz.win/r/marzneshin.git
app/db/migrations/versions/20241009_1992c49c5990_add_sub_revoked_at.py · Python
Blame Raw
 1"""add sub_revoked_at to users table
 2
 3Revision ID: 1992c49c5990
 4Revises: fd423c19f682
 5Create Date: 2024-10-09 05:24:52.450988
 6
 7"""
 8
 9from alembic import op
10import sqlalchemy as sa
11
12
13# revision identifiers, used by Alembic.
14revision = "1992c49c5990"
15down_revision = "fd423c19f682"
16branch_labels = None
17depends_on = None
18
19
20def upgrade() -> None:
21    # ### commands auto generated by Alembic - please adjust! ###
22    op.add_column(
23        "users",
24        sa.Column("sub_revoked_at", sa.DateTime()),
25    )
26    # ### end Alembic commands ###
27
28
29def downgrade() -> None:
30    # ### commands auto generated by Alembic - please adjust! ###
31    op.drop_column("users", "sub_revoked_at")
32    # ### end Alembic commands ###