Skip to content

Commit 27365a0

Browse files
committed
Revert migration script
- It was updated to run a migration in background, it's not required anymore
1 parent 8b1c45a commit 27365a0

File tree

1 file changed

+1
-11
lines changed
  • docker/web/celery/worker

1 file changed

+1
-11
lines changed

docker/web/celery/worker/run.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,7 @@ fi
1414

1515
if [ ${RUN_MIGRATIONS:-0} = 1 ]; then
1616
echo "==> $(date +%H:%M:%S) ==> Migrating Django models... "
17-
# DB_STATEMENT_TIMEOUT=0 python manage.py migrate --noinput
18-
# Check migration 0097 is not applied, so we don't rollback to 0096
19-
if python manage.py showmigrations history | grep -q '\[ \] 0097'; then
20-
DB_STATEMENT_TIMEOUT=0 python manage.py migrate --noinput history 0096
21-
fi
22-
SECONDS=0
23-
(
24-
echo "Starting migration 0097 for denormalization" &&
25-
DB_STATEMENT_TIMEOUT=0 python manage.py migrate --noinput &&
26-
echo "Migration 0097 for denormalization was successful in ${SECONDS} seconds"
27-
) &
17+
DB_STATEMENT_TIMEOUT=0 python manage.py migrate --noinput
2818

2919
echo "==> $(date +%H:%M:%S) ==> Setting up service... "
3020
python manage.py setup_service

0 commit comments

Comments
 (0)