Skip to content
Snippets Groups Projects
Commit e67dc499 authored by Inga Kirschnick's avatar Inga Kirschnick
Browse files

Database update

parent 8538fc70
No related branches found
No related tags found
No related merge requests found
......@@ -17,16 +17,13 @@ depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('users', schema=None) as batch_op:
batch_op.add_column(sa.Column('terms_of_use_accepted', sa.Boolean(), nullable=True))
op.execute('UPDATE users SET terms_of_use_accepted = false;')
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
with op.batch_alter_table('users', schema=None) as batch_op:
batch_op.drop_column('terms_of_use_accepted')
# ### end Alembic commands ###
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment