| 123456789101112131415 |
- from app import create_app, db
- from sqlalchemy import text
- app = create_app()
- with app.app_context():
- print("Adding icon_url column to section_title table...")
- try:
- db.session.execute(text('ALTER TABLE section_title ADD COLUMN icon_url VARCHAR(256);'))
- print("Added icon_url")
- except Exception as e:
- print("icon_url might already exist:", e)
-
- db.session.commit()
- print("Migration completed.")
|