4.21.3
This commit is contained in:
38
app/migrations/versions/2020_031621_91b69dfad2f1_.py
Normal file
38
app/migrations/versions/2020_031621_91b69dfad2f1_.py
Normal file
@ -0,0 +1,38 @@
|
||||
"""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 ###
|
Reference in New Issue
Block a user