From 573026ec8625589841f9280baa752338a0d11453 Mon Sep 17 00:00:00 2001 From: Tom Udding Date: Mon, 21 Oct 2024 00:36:08 +0200 Subject: [PATCH] chore: add Makefile command for performing all migrations Performing them one-by-one is something that _I_ am willing to do, but others probably not. --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index b0e2601691..af3d6fe420 100644 --- a/Makefile +++ b/Makefile @@ -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