'How to add index to existing column using alembic

Im new to python alembic .want to add index to existing column in particular table i did that but struck in creating alembic file for that. ex:

class File(db.model):
        __tablename__ = 'file'
        id = db.column(db.ForeignKey('public.id.id),index = True)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source