Add alembic migrations
This commit is contained in:
@@ -13,11 +13,20 @@ install-dev:
|
||||
$(VENV_DIR)/bin/pip install -r $(REQ_FILE) -r requirements-dev.txt
|
||||
|
||||
start:
|
||||
docker compose up
|
||||
docker compose up --build
|
||||
|
||||
clean-db:
|
||||
docker compose down
|
||||
docker compose down -v db
|
||||
|
||||
clean:
|
||||
rm -rf $(VENV_DIR)
|
||||
rm -rf $(VENV_DIR)
|
||||
|
||||
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