Set the initial migration better

This commit is contained in:
Jacob Windsor
2025-02-19 16:02:14 +01:00
parent 0d1e53acdb
commit 03aba52c6c
3 changed files with 40 additions and 50 deletions
+3 -1
View File
@@ -22,11 +22,13 @@ clean-db:
clean:
rm -rf $(VENV_DIR)
start-db:
docker compose up -d db
create-migration:
@read -p "Enter migration message: " MESSAGE; \
if [ -z "$$MESSAGE" ]; then \
echo "Migration message cannot be empty."; \
exit 1; \
fi; \
docker compose up -d db
cd backend && alembic revision --autogenerate -m "$$MESSAGE"