mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2025-10-14 18:51:56 +00:00
Add parallel fs changes to migration scripts and cleanup
This commit is contained in:
@@ -16,16 +16,18 @@ depends_on = None
|
||||
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.drop_index('ix_users_token', table_name='users')
|
||||
op.drop_column('users', 'token')
|
||||
op.drop_column('users', 'token_expiration')
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.add_column('users', sa.Column('token_expiration', sa.DateTime(), autoincrement=False, nullable=True))
|
||||
op.add_column('users', sa.Column('token', sa.VARCHAR(length=32), autoincrement=False, nullable=True))
|
||||
op.add_column(
|
||||
'users',
|
||||
sa.Column('token_expiration', sa.DateTime(), autoincrement=False, nullable=True)
|
||||
)
|
||||
op.add_column(
|
||||
'users',
|
||||
sa.Column('token', sa.String(length=32), autoincrement=False, nullable=True)
|
||||
)
|
||||
op.create_index('ix_users_token', 'users', ['token'], unique=False)
|
||||
# ### end Alembic commands ###
|
||||
|
Reference in New Issue
Block a user