Skip to content
Snippets Groups Projects
Commit bbc6c3f2 authored by Administrator's avatar Administrator
Browse files

Add column "prior" with default value

parent e6e8af28
No related branches found
No related tags found
No related merge requests found
......@@ -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 ###
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment