I have a flask-sqlalchemy model:
class MyModel(db.Model): __tablename__ = \'targets\' id = db.Column(db.Integer, primary_key=True) url = db.Column(db.String(2048
Use flask-migrate.It's cool. After you add the index,just use this command:
python manage.py db migrate
Everything works fine