Terms of use confirmation

This commit is contained in:
Inga Kirschnick
2023-04-13 16:08:07 +02:00
parent 144bb38d75
commit 8538fc705f
10 changed files with 198 additions and 2 deletions

View File

@ -0,0 +1,32 @@
"""Add terms_of_use_accepted column to users table
Revision ID: b15b639288d4
Revises: 1f77ce4346c6
Create Date: 2023-04-13 10:19:38.662996
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = 'b15b639288d4'
down_revision = '1f77ce4346c6'
branch_labels = None
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))
# ### 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 ###