mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-04 04:12:45 +00:00 
			
		
		
		
	Database update
This commit is contained in:
		@@ -17,16 +17,13 @@ depends_on = None
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def upgrade():
 | 
					def upgrade():
 | 
				
			||||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
					 | 
				
			||||||
    with op.batch_alter_table('users', schema=None) as batch_op:
 | 
					    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))
 | 
					        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 ###
 | 
					    # ### end Alembic commands ###
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
def downgrade():
 | 
					def downgrade():
 | 
				
			||||||
    # ### commands auto generated by Alembic - please adjust! ###
 | 
					 | 
				
			||||||
    with op.batch_alter_table('users', schema=None) as batch_op:
 | 
					    with op.batch_alter_table('users', schema=None) as batch_op:
 | 
				
			||||||
        batch_op.drop_column('terms_of_use_accepted')
 | 
					        batch_op.drop_column('terms_of_use_accepted')
 | 
				
			||||||
 | 
					 | 
				
			||||||
    # ### end Alembic commands ###
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user