From 950b05b657fc809b333cf53ce0c6b5e653dcaf0a Mon Sep 17 00:00:00 2001 From: Blaine Jester Date: Mon, 24 Apr 2023 11:51:28 -0700 Subject: [PATCH] Add new Makefile target for post-migration flows --- Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Makefile b/Makefile index d6827d58ae..90198b806f 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,18 @@ migrate: python contentcuration/manage.py migrate || true python contentcuration/manage.py loadconstants +# This is a special command that is we'll reuse to run data migrations outside of the normal +# django migration process. This is useful for long running migrations which we don't want to block +# the CD build. Do not delete! +# Procedure: +# 1) Add a new management command for the migration +# 2) Call it here +# 3) Perform the release +# 4) Remove the management command from this `deploy-migrate` recipe +# 5) Repeat! +deploy-migrate: + echo "Nothing to do here" + contentnodegc: python contentcuration/manage.py garbage_collect