curl -LsSf https://astral.sh/uv/install.sh | shuv python install 3.12uv syncuv sync --no-devThe setup uses alembic (aleady installed by uv with uv sync). Ideally to develop locally in a more reliable/easy way you should use docker.
docker run -d \
--name mysql \
-e MYSQL_ROOT_PASSWORD=reportsdone \
-e MYSQL_DATABASE=reports \
-e MYSQL_USER=bd \
-e MYSQL_PASSWORD=reportsdone \
-p 3306:3306 \
mysql:latestReplace the values with whatever you are using in your .env file.
alembic upgrade headThis is included as a step during deployment to always keep the DB up to date.
uv run alembic revision --autogenerate -m "some_commit_mesage"Finish off with:
alembic upgrade headRevert the latest migration:
alembic downgrade -1Remove the newly generated migration script:
rm alembic/versions/<migration_filename>.pyuv run main.py