Skip to content

Commit

Permalink
Merge pull request #153 from mitodl/4228-switch-unified-ecommerce-mig…
Browse files Browse the repository at this point in the history
…rations-to-the-release-phase

Add migrations to release script
  • Loading branch information
cp-at-mit committed Sep 25, 2024
2 parents 281e58d + 5b465a1 commit 28a75ec
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 28a75ec

Please sign in to comment.