2025-06-02 11:37:11 +00:00

26 lines
596 B
Plaintext

# Alembic Migrations
This directory contains database migration scripts managed by Alembic.
## Structure
- `alembic.ini`: Configuration file for Alembic
- `env.py`: Environment configuration for Alembic
- `script.py.mako`: Template for generating migration scripts
- `versions/`: Directory containing migration scripts
## Usage
To apply migrations:
```bash
alembic upgrade head
```
To create a new migration (after changing models):
```bash
alembic revision -m "description of changes"
```
For more information, see the [Alembic documentation](https://alembic.sqlalchemy.org/en/latest/).