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"
|
2020-03-25 11:55:35 +01:00
|
|
|
down_revision = "628a5438295c"
|
2020-03-17 09:22:29 +01:00
|
|
|
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 ###
|