New migration
alembic revision -m "create XXX table"Note
Run below commands inside a docker container
Check current revision
docker exec -it lockerapi-web .venv/bin/alembic currentTo run all of your outstanding migrations, execute the upgrade head command
docker exec -it lockerapi-web .venv/bin/alembic upgrade headTo roll back the latest migration operation, you may use the alembic downgrade command
docker exec -it lockerapi-web .venv/bin/alembic alembic downgrade -1To run rolled back migration again:
docker exec -it lockerapi-web .venv/bin/alembic alembic downgrade +1Revision History: Use .venv/bin/alembic history to see the history of migrations and understand the steps involved.
Detailed View: Use .venv/bin/alembic show <revision> to get detailed information about specific revision scripts.
uv lock --upgraderuff check app/ruff check app/ --fix- alembic migration
- insert geo data
uv run locations.py
http://localhost:5000/{language}/r/{room_name} http://localhost:5000/{language}/l/{location} http://localhost:5000/{language}/l/{location}/{tag} http://localhost:5000/{language}/c/{company_name}