app/migrations/versions/2019_122521_8f53e718c79a_alias_generator_scheme.py
2019-12-28 14:20:10 +01:00

28 lines
721 B
Python

"""alias generator scheme
Revision ID: 8f53e718c79a
Revises: 9e1b06b9df13
Create Date: 2019-12-25 21:21:27.573197
"""
import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '8f53e718c79a'
down_revision = '9e1b06b9df13'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('users', sa.Column('alias_generator', sa.Integer(), server_default="1", nullable=False))
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('users', 'alias_generator')
# ### end Alembic commands ###