mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-06-14 18:10:40 +00:00
Terms of use confirmation
This commit is contained in:
32
migrations/versions/b15b639288d4_.py
Normal file
32
migrations/versions/b15b639288d4_.py
Normal 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 ###
|
Reference in New Issue
Block a user