Skip to content

Commit

Permalink
chore(makefile): allow migration to be specified in make migrate
Browse files Browse the repository at this point in the history
The migration to migrate to can now be specified by setting the `migration`
Makefile variable on the command line, e.g. `make migrate migrations=0013`.
  • Loading branch information
Restioson committed Nov 7, 2024
1 parent 3033db1 commit 7f54f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ make-migrations:
@docker compose run --rm web python manage.py makemigrations

migrate:
@docker compose run --rm web python manage.py migrate
@docker compose run --rm web python manage.py migrate $(migration)

collectstatic:
@docker compose run --rm web python manage.py collectstatic --noinput
Expand Down

0 comments on commit 7f54f2f

Please sign in to comment.