Skip to content

Commit

Permalink
Merge pull request #871 from scidsg/fix-makefile-migrations
Browse files Browse the repository at this point in the history
fix makefile migrations
  • Loading branch information
brassy-endomorph authored Jan 21, 2025
2 parents 3652696 + e8afa3f commit cbb73be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ run-full: ## Run the app with all features enabled

.PHONY: migrate-dev
migrate-dev: ## Run dev env migrations
poetry run ./scripts/dev_migrations.py
docker compose run app poetry run ./scripts/dev_migrations.py

.PHONY: migrate-prod
migrate-prod: ## Run prod env (alembic) migrations
poetry run flask db upgrade
docker compose run app poetry run flask db upgrade

.PHONY: dev-data
dev-data: migrate-dev ## Run dev env migrations, and add dev data
Expand All @@ -48,7 +48,7 @@ revision: migrate-prod ## Create a new migration
ifndef message
$(error 'message' must be set when invoking the revision target, eg `make revision message="short message"`)
endif
poetry run flask db revision -m "$(message)" --autogenerate
docker compose run app poetry run flask db revision -m "$(message)" --autogenerate

TESTS ?= ./tests/
.PHONY: test
Expand Down

0 comments on commit cbb73be

Please sign in to comment.