app-MAIL-temp/migrations/versions/2020_031621_91b69dfad2f1_.py

39 lines
833 B
Python
Raw Normal View History

2020-03-17 09:22:29 +01:00
"""empty message
Revision ID: 91b69dfad2f1
Revises: 9081f1a90939
Create Date: 2020-03-16 21:15:48.652860
"""
import sqlalchemy_utils
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "91b69dfad2f1"
down_revision = "9081f1a90939"
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("users", "can_use_pgp")
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column(
"users",
sa.Column(
"can_use_pgp",
sa.BOOLEAN(),
server_default=sa.text("false"),
autoincrement=False,
nullable=False,
),
)
# ### end Alembic commands ###