Auth is working. Disabled field added (models)

This commit is contained in:
2023-07-27 18:55:30 +03:00
committed by Dmitry Gantimurov
parent dd719a20ec
commit 6bb7ab5ce9
5 changed files with 33 additions and 4 deletions

View File

@ -0,0 +1,28 @@
"""new colomn (disabled) added to user table
Revision ID: daffcb4729af
Revises: 18001c2231e3
Create Date: 2023-07-26 23:54:22.640750
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'daffcb4729af'
down_revision = '18001c2231e3'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('users', sa.Column('disabled', sa.Boolean(), nullable=True))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('users', 'disabled')
# ### end Alembic commands ###