core/memory/database/alembic/README.md
Generic single-database configuration.
When the server starts, it will automatically:
alembic_version → stamp to current versionalembic upgrade head to apply any pending migrations# Auto-generate migration from model changes
alembic revision --autogenerate -m "description of changes"
# Create empty migration file
alembic revision -m "description of changes"
⚠️ Important Notes:
# Downgrade one step
alembic downgrade -1
# Downgrade to specific version
alembic downgrade <revision>
# Downgrade all migrations
alembic downgrade base
Modify your SQLModel classes in workflow/domain/models/
Generate migration:
alembic revision --autogenerate -m "add user table"
Review the generated file in alembic/versions/
Edit if needed - autogenerate may not catch everything:
Commit the migration file to git