2019-12-29 10:30:25 +01:00
|
|
|
"""empty message
|
2019-12-26 12:21:28 +01:00
|
|
|
|
2019-12-29 10:30:25 +01:00
|
|
|
Revision ID: e409f6214b2b
|
|
|
|
Revises: d4e4488a0032
|
|
|
|
Create Date: 2019-12-29 10:29:44.979846
|
2019-12-26 12:21:28 +01:00
|
|
|
|
|
|
|
"""
|
|
|
|
import sqlalchemy_utils
|
|
|
|
from alembic import op
|
|
|
|
import sqlalchemy as sa
|
|
|
|
|
2019-12-29 10:30:25 +01:00
|
|
|
|
2019-12-26 12:21:28 +01:00
|
|
|
# revision identifiers, used by Alembic.
|
2019-12-29 10:30:25 +01:00
|
|
|
revision = 'e409f6214b2b'
|
|
|
|
down_revision = 'd4e4488a0032'
|
2019-12-26 12:21:28 +01:00
|
|
|
branch_labels = None
|
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
2019-12-29 10:30:25 +01:00
|
|
|
op.add_column('users', sa.Column('alias_generator', sa.Integer(), server_default='1', nullable=False))
|
2019-12-26 12:21:28 +01:00
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
|
|
op.drop_column('users', 'alias_generator')
|
|
|
|
# ### end Alembic commands ###
|