Skip to content

Commit

Permalink
Add migrations to release script
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-at-mit committed Sep 24, 2024
1 parent 0f5b8df commit 5b465a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/heroku-release-phase.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ MANAGE_FILE=$(find . -maxdepth 3 -type f -name 'manage.py' | head -1)
# trim "./" from the path
MANAGE_FILE=${MANAGE_FILE:2}

# Run migrations

echo "-----> Running django migrations"
python $MANAGE_FILE showmigrations --list 2>&1 | indent
python $MANAGE_FILE migrate --noinput 2>&1 | indent

# Retaining this script in the should we require future post release actions
# we will have a recipe set to go.
echo "----> NOOP"

0 comments on commit 5b465a1

Please sign in to comment.