
- Update migrations/env.py to use SQLAlchemy 2.0 compatible syntax - Import text class from sqlalchemy for executing raw SQL - Convert connection.execute() call to use text() for PRAGMA statements - Fix the database migration error for SQLite foreign keys