Commit bbc6c3f2 authored by Administrator's avatar Administrator
Browse files

Add column "prior" with default value

parent e6e8af28
......@@ -18,8 +18,10 @@ depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('defaultmetas', sa.Column('prior', sa.Boolean(), nullable=False))
op.add_column('defaultmetas', sa.Column('prior', sa.Boolean(), nullable=True))
op.add_column('defaultmetas', sa.Column('value', sa.String(), nullable=True))
op.execute("UPDATE defaultmetas SET prior=FALSE")
op.alter_column("defaultmetas", "prior", nullable=False)
# ### end Alembic commands ###
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment