ssciwr / mondey

In development
https://mondey.lkeegan.dev
GNU Affero General Public License v3.0
0 stars 1 forks source link

Consider using alembic for database migration #108

Open lkeegan opened 1 month ago

lkeegan commented 1 month ago

Once we have data in the database that we don't want to lose, if we need to modify the database schema then we need to migrate the data to the new schema.

For simple changes during development it is probably simplest to just directly modify the database accordingly.

But if this has to be done in production, a common way to do this is using alembic:

https://alembic.sqlalchemy.org/en/latest/