mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-05 12:47:29 +01:00
Fix migration error
This commit is contained in:
parent
68b7a5e922
commit
ba08becd3a
@ -19,17 +19,11 @@ depends_on = None
|
|||||||
|
|
||||||
def upgrade():
|
def upgrade():
|
||||||
# ### commands auto generated by Alembic - please adjust! ###
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
op.alter_column('user','username', type_=ty.VARCHAR(50, collation='NOCASE'))
|
pass
|
||||||
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)
|
|
||||||
# ### end Alembic commands ###
|
# ### end Alembic commands ###
|
||||||
|
|
||||||
|
|
||||||
def downgrade():
|
def downgrade():
|
||||||
# ### commands auto generated by Alembic - please adjust! ###
|
# ### commands auto generated by Alembic - please adjust! ###
|
||||||
op.alter_column('user','username', type_=ty.VARCHAR(50))
|
pass
|
||||||
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')
|
|
||||||
# ### end Alembic commands ###
|
# ### end Alembic commands ###
|
||||||
|
Loading…
Reference in New Issue
Block a user