chore: change the way migrations are invoked for actions and dev builds (#5356)
This commit is contained in:
parent
39be6da031
commit
c3e6708b72
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -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."
|
||||
|
|
2
.github/workflows/ci-run-tests.yml
vendored
2
.github/workflows/ci-run-tests.yml
vendored
|
@ -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."
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 "-----------------------------------------------------------------"
|
||||
|
|
Loading…
Reference in a new issue