fablab-bergamo / fabomatic-backend

A RaspberryPi Zero-friendly backend, for managing FabLab machines access. This is the server-side of the Fab-O-Matic board project. Works in Python with MQTT broker + Database Engine.
https://www.fablabbergamo.it/2024/06/03/fabomatic1/
MIT License
0 stars 1 forks source link

Alembic.ini file installation #10

Closed PBrunot closed 4 months ago

PBrunot commented 5 months ago

Currently the Alembic.ini file must be copied into the user home folder for migrations to work. This step shall be automated or simplified.

PBrunot commented 4 months ago

Users do not need alembic, just migrations, the INI file is needed only on dev environment. On startup the application looks for migrations to apply on the database without needed alembic.ini file. Finally, test cases include database upgrades.