0

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)
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Feb 28 '22 at 09:33
  • https://alembic.sqlalchemy.org/en/latest/ops.html#alembic.operations.Operations.create_index – Gord Thompson Mar 15 '22 at 21:10

0 Answers0