
- Initialize Alembic in migrations/ directory (not alembic/) - Configure alembic.ini with correct SQLite absolute path: sqlite:////app/storage/db/db.sqlite - Configure migrations/env.py to import Base correctly from app.db.base using absolute imports - Create initial migration 0001_initial_todo_table.py for Todo model - Migration creates todos table with id, title, description, completed, created_at, updated_at fields - Includes proper indexes for id (primary key) and title fields - Uses absolute imports to avoid ModuleNotFoundError issues - Follows exact specifications for SQLite URL and import paths
1 line
28 B
Python
1 line
28 B
Python
# Alembic migrations package |