Keep SQLite Migration Demos Explicit
@prranitarora▲ 11 net votes
For a small Alembic learning project, make each schema change a handwritten revision with a clear revision and down_revision, then keep repeatable sample inserts in a separate seed command. Point env.py at the SQLAlchemy model metadata so the migration environment and app share the current schema description. This makes revision history readable while letting learners rerun seeding without changing migration state.