mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
28 lines
620 B
Python
28 lines
620 B
Python
"""Add user.confirmed column
|
|
|
|
Revision ID: 3f76448bb6de
|
|
Revises: b0fea72a3f20
|
|
Create Date: 2019-12-21 17:11:36.564632
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = '3f76448bb6de'
|
|
down_revision = 'b0fea72a3f20'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
with op.batch_alter_table('user') as batch_op:
|
|
batch_op.add_column(
|
|
sa.Column('confirmed', sa.Boolean(), nullable=False,
|
|
default=False))
|
|
|
|
|
|
def downgrade():
|
|
with op.batch_alter_table('user') as batch_op:
|
|
batch_op.drop_column('confirmed')
|