Skip to content

Commit

Permalink
chore: add Makefile command for performing all migrations
Browse files Browse the repository at this point in the history
Performing them one-by-one is something that _I_ am willing to do, but others
probably not.
  • Loading branch information
tomudding committed Oct 20, 2024
1 parent ee2a044 commit 573026e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ migration-diff: replenish
@docker compose exec -T web ./orm migrations:diff
@docker cp "$(shell docker compose ps -q web)":/code/module/Application/migrations ./module/Application/migrations

migration-migrate: replenish
@docker compose exec -it web ./orm migrations:migrate

migration-up: replenish migration-list
@read -p "Enter the migration version to execute (e.g., Application\\Migrations\\Version20241020212355 -- note escaping the backslashes is required): " version; \
docker compose exec -it web ./orm migrations:execute --up $$version
Expand Down

0 comments on commit 573026e

Please sign in to comment.