mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-09 15:10:27 +00:00
Merge branch 'fix_issue_635' of github.com:subbink/PowerDNS-Admin into subbink-fix_issue_635
This commit is contained in:
commit
afcf0fbea7
@ -18,8 +18,12 @@ depends_on = None
|
|||||||
def upgrade():
|
def upgrade():
|
||||||
with op.batch_alter_table('user') as batch_op:
|
with op.batch_alter_table('user') as batch_op:
|
||||||
batch_op.add_column(
|
batch_op.add_column(
|
||||||
sa.Column('confirmed', sa.Boolean(), nullable=False,
|
sa.Column('confirmed', sa.Boolean(), nullable=True,
|
||||||
default=False))
|
default=False))
|
||||||
|
with op.batch_alter_table('user') as batch_op:
|
||||||
|
user = sa.sql.table('user', sa.sql.column('confirmed'))
|
||||||
|
batch_op.execute(user.update().values(confirmed=False))
|
||||||
|
batch_op.alter_column('confirmed', nullable=False)
|
||||||
|
|
||||||
|
|
||||||
def downgrade():
|
def downgrade():
|
||||||
|
Loading…
Reference in New Issue
Block a user