33 lines
801 B
Python
33 lines
801 B
Python
"""empty message
|
|
|
|
Revision ID: 5f6e19ecdbaf
|
|
Revises: e345198c92d5
|
|
Create Date: 2023-04-13 09:49:14.466038
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '5f6e19ecdbaf'
|
|
down_revision = 'e345198c92d5'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('users', schema=None) as batch_op:
|
|
batch_op.add_column(sa.Column('department', sa.String(length=128), nullable=True))
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade():
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
with op.batch_alter_table('users', schema=None) as batch_op:
|
|
batch_op.drop_column('department')
|
|
|
|
# ### end Alembic commands ###
|