b43cdcadc5
- alembic.ini: Alembic configuration - alembic/env.py: migration environment with Base import - alembic/versions/001_initial_schema.py: initial schema migration (projects, asset_libraries, assets, ingest_jobs) - alembic/README.md: migration usage guide - all 7 integration tests still passing
24 lines
423 B
Markdown
24 lines
423 B
Markdown
# Alembic Migrations
|
|
|
|
This directory contains database migration scripts managed by Alembic.
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
# Apply all pending migrations
|
|
alembic upgrade head
|
|
|
|
# Rollback one migration
|
|
alembic downgrade -1
|
|
|
|
# Show current revision
|
|
alembic current
|
|
|
|
# Show migration history
|
|
alembic history
|
|
```
|
|
|
|
## Current Migrations
|
|
|
|
- `001_initial_schema.py` - Initial database schema (projects, asset_libraries, assets, ingest_jobs)
|