forked from polka_billy/porridger
Auth is working. Disabled field added (models)
This commit is contained in:
@ -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 ###
|
Reference in New Issue
Block a user