25 lines
435 B
Python
25 lines
435 B
Python
"""
|
|
Addresses bug 854425
|
|
|
|
Renames the 'token' table to 'tokens',
|
|
in order to appear more consistent with
|
|
other table names.
|
|
"""
|
|
# pylint: disable=C0103
|
|
|
|
|
|
import sqlalchemy
|
|
|
|
|
|
meta = sqlalchemy.MetaData()
|
|
|
|
|
|
def upgrade(migrate_engine):
|
|
meta.bind = migrate_engine
|
|
sqlalchemy.Table('token', meta).rename('tokens')
|
|
|
|
|
|
def downgrade(migrate_engine):
|
|
meta.bind = migrate_engine
|
|
sqlalchemy.Table('tokens', meta).rename('token')
|