app/migrations/versions/18e934d58f55_.py

30 lines
737 B
Python
Raw Normal View History

2019-12-23 00:32:55 +08:00
"""empty message
Revision ID: 18e934d58f55
Revises: 0c7f1a48aac9
Create Date: 2019-12-22 16:31:33.531138
"""
import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '18e934d58f55'
down_revision = '0c7f1a48aac9'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('gen_email', 'custom')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('gen_email', sa.Column('custom', sa.BOOLEAN(), server_default=sa.text('false'), autoincrement=False, nullable=False))
# ### end Alembic commands ###