From e67dc499767b5219cc287d7a9a7920f5ceed2f9c Mon Sep 17 00:00:00 2001 From: Inga Kirschnick Date: Fri, 14 Apr 2023 11:29:49 +0200 Subject: [PATCH] Database update --- migrations/versions/b15b639288d4_.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/migrations/versions/b15b639288d4_.py b/migrations/versions/b15b639288d4_.py index 32e4d611..21c2a4d2 100644 --- a/migrations/versions/b15b639288d4_.py +++ b/migrations/versions/b15b639288d4_.py @@ -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 ###