Set the initial migration better
This commit is contained in:
@@ -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"
|
||||
Reference in New Issue
Block a user