mirror of
https://framagit.org/framasoft/framaspace/argos.git
synced 2025-04-28 18:02:41 +02:00
11 lines
379 B
Markdown
11 lines
379 B
Markdown
# Adding a database migration
|
|
|
|
We are using [Alembic](https://alembic.sqlalchemy.org) to handle the database
|
|
migrations. Here is how to proceed in order to add a new migration:
|
|
|
|
First, do your changes in the code, change the model, add new tables, etc. Once
|
|
you're done, you can create a new migration.
|
|
|
|
```bash
|
|
venv/bin/alembic revision --autogenerate -m "migration reason"
|
|
```
|