FIX anubis developer migration
@@ -19,7 +19,12 @@ depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column(
- "user", sa.Column("is_anubis_developer", sa.Boolean(), nullable=False)
+ "user", sa.Column("is_anubis_developer", sa.Boolean(), nullable=True)
+ )
+ conn = op.get_bind()
+ conn.execute('UPDATE `user` SET `is_anubis_developer` = 0;')
+ op.alter_column(
+ "user", "is_anubis_developer", type_=sa.Boolean(), nullable=False,
)
# ### end Alembic commands ###
