ScoDoc/migrations/versions/5731e904baac_cas_last_login.py

29 lines
666 B
Python
Raw Normal View History

"""CAS last login
Revision ID: 5731e904baac
Revises: 4c19fcb42636
Create Date: 2023-03-02 11:36:58.465579
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "5731e904baac"
down_revision = "4c19fcb42636"
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column("user", sa.Column("cas_last_login", sa.DateTime(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("user", "cas_last_login")
# ### end Alembic commands ###