Commit graph

2 commits

Author SHA1 Message Date
1ea09c1a45 feat: use Alembic to initialize the database
This completely removes the previous DB patching mechanism.
When this is first run for an existing installation of Unwind, depending
on its version it might lead to problems because the database's schema
won't match the code.
To avoid that issue, when upgrading Unwind to this version make sure to
STOP the old application, install this new version but DON'T start it,
instead use `alembic upgrade head` to run the outstanding patches, and
only then start the application.
2024-05-19 02:25:36 +02:00
feb60bf658 feat: add Alembic
This adds the `ratings_index` to code, which so far wasn't reflected in
SQLAlchemy's metadata.
2024-05-18 18:54:46 +02:00