Skip to content

Commit

Permalink
Run correct migration command (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
trent-codecov authored May 8, 2024
1 parent 1f86f07 commit 4d08c2d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ _start_gunicorn() {
fi
if [[ "$RUN_ENV" == "ENTERPRISE" ]] || [[ "$RUN_ENV" == "enterprise" ]] || [[ "$RUN_ENV" == "DEV" ]]; then
python manage.py migrate
python manage.py migrate --database "timeseries"
python manage.py migrate --database "timeseries" timeseries
python manage.py pgpartition --yes --skip-delete
fi
if [[ "$DEBUGPY" ]]; then
Expand Down
4 changes: 2 additions & 2 deletions enterprise.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if [[ "$1" = "api" || -z "$1" ]];
then
# Migrate
python manage.py migrate
python manage.py migrate --database "timeseries"
python manage.py migrate --database "timeseries" timeseries
# Start api
${SUB}$prefix gunicorn codecov.wsgi:application --workers=$GUNICORN_WORKERS --bind ${CODECOV_API_BIND:-0.0.0.0}:${CODECOV_API_PORT:-8000} --access-logfile '-' ${statsd}--timeout "${GUNICORN_TIMEOUT:-600}"${POST}
elif [[ "$1" = "rti" ]];
Expand All @@ -39,7 +39,7 @@ then
elif [[ "$1" = "migrate" ]];
then
python manage.py migrate
python manage.py migrate --database "timeseries"
python manage.py migrate --database "timeseries" timeseries
else
exec "$@"
fi

0 comments on commit 4d08c2d

Please sign in to comment.