mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2024-11-08 14:40:27 +00:00
Merge pull request #1452 from nkukard/nkupdates-migrations-fix
Fix user confirmed column migration issue
This commit is contained in:
commit
57b4457add
@ -23,7 +23,7 @@ def upgrade():
|
||||
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)
|
||||
batch_op.alter_column('confirmed', nullable=False, existing_type=sa.Boolean(), existing_nullable=True, existing_server_default=False)
|
||||
|
||||
|
||||
def downgrade():
|
||||
|
Loading…
Reference in New Issue
Block a user