Skip to content

Commit

Permalink
chore: change the way migrations are invoked for actions and dev buil…
Browse files Browse the repository at this point in the history
…ds (#5356)
  • Loading branch information
rjsparks committed Mar 16, 2023
1 parent 39be6da commit c3e6708
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Expand Up @@ -151,7 +151,7 @@ jobs:
run: |
echo "Running checks..."
./ietf/manage.py check
./ietf/manage.py migrate
./ietf/manage.py migrate --fake-initial
echo "Validating migrations..."
if ! ( ietf/manage.py makemigrations --dry-run --check --verbosity 3 ) ; then
echo "Model changes without migrations found."
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-run-tests.yml
Expand Up @@ -45,7 +45,7 @@ jobs:
run: |
echo "Running checks..."
./ietf/manage.py check
./ietf/manage.py migrate
./ietf/manage.py migrate --fake-initial
echo "Validating migrations..."
if ! ( ietf/manage.py makemigrations --dry-run --check --verbosity 3 ) ; then
echo "Model changes without migrations found."
Expand Down
2 changes: 1 addition & 1 deletion dev/deploy-to-container/start.sh
Expand Up @@ -27,7 +27,7 @@ echo "Running Datatracker checks..."
# Migrate, adjusting to what the current state of the underlying database might be:

echo "Running Datatracker migrations..."
/usr/local/bin/python ./ietf/manage.py migrate --settings=settings_local
/usr/local/bin/python ./ietf/manage.py migrate --fake-initial --settings=settings_local

echo "Starting Datatracker..."
./ietf/manage.py runserver 0.0.0.0:8000 --settings=settings_local
2 changes: 1 addition & 1 deletion dev/diff/prepare.sh
Expand Up @@ -14,5 +14,5 @@ chmod +x ./docker/scripts/app-create-dirs.sh
./docker/scripts/app-create-dirs.sh

./ietf/manage.py check
./ietf/manage.py migrate
./ietf/manage.py migrate --fake-initial

2 changes: 1 addition & 1 deletion docker/scripts/app-init.sh
Expand Up @@ -103,7 +103,7 @@ echo "Running initial checks..."

# Migrate, adjusting to what the current state of the underlying database might be:

/usr/local/bin/python $WORKSPACEDIR/ietf/manage.py migrate --settings=settings_local
/usr/local/bin/python $WORKSPACEDIR/ietf/manage.py migrate --fake-initial --settings=settings_local


echo "-----------------------------------------------------------------"
Expand Down

0 comments on commit c3e6708

Please sign in to comment.