mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-31 18:27:30 +01:00
Fix migration error
This commit is contained in:
parent
68b7a5e922
commit
ba08becd3a
@ -19,17 +19,11 @@ depends_on = None
|
||||
|
||||
def upgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.alter_column('user','username', type_=ty.VARCHAR(50, collation='NOCASE'))
|
||||
op.alter_column('user','github_username', type_=ty.VARCHAR(50, collation='NOCASE'))
|
||||
op.alter_column('user','forums_username', type_=ty.VARCHAR(50, collation='NOCASE'))
|
||||
op.create_index(op.f('ix_user_username'), 'user', ['username'], unique=True)
|
||||
pass
|
||||
# ### end Alembic commands ###
|
||||
|
||||
|
||||
def downgrade():
|
||||
# ### commands auto generated by Alembic - please adjust! ###
|
||||
op.alter_column('user','username', type_=ty.VARCHAR(50))
|
||||
op.alter_column('user','github_username', type_=ty.VARCHAR(50))
|
||||
op.alter_column('user','forums_username', type_=ty.VARCHAR(50))
|
||||
op.drop_index(op.f('ix_user_username'), table_name='user')
|
||||
pass
|
||||
# ### end Alembic commands ###
|
||||
|
Loading…
Reference in New Issue
Block a user