app-MAIL-temp/migrations/versions/3a87573bf8a8_.py

30 lines
747 B
Python
Raw Normal View History

2019-11-29 19:57:36 +01:00
"""empty message
Revision ID: 3a87573bf8a8
Revises: e83298198ca5
Create Date: 2019-11-29 18:53:24.553859
"""
import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '3a87573bf8a8'
down_revision = 'e83298198ca5'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('users', 'can_use_api_key')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('users', sa.Column('can_use_api_key', sa.BOOLEAN(), server_default=sa.text('false'), autoincrement=False, nullable=False))
# ### end Alembic commands ###