mirror of
https://github.com/simple-login/app.git
synced 2024-11-10 17:35:27 +08:00
38 lines
833 B
Python
38 lines
833 B
Python
"""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 ###
|