Skip to content

Commit c3e6708

Browse files
authored
chore: change the way migrations are invoked for actions and dev builds (ietf-tools#5356)
1 parent 39be6da commit c3e6708

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151
run: |
152152
echo "Running checks..."
153153
./ietf/manage.py check
154-
./ietf/manage.py migrate
154+
./ietf/manage.py migrate --fake-initial
155155
echo "Validating migrations..."
156156
if ! ( ietf/manage.py makemigrations --dry-run --check --verbosity 3 ) ; then
157157
echo "Model changes without migrations found."

.github/workflows/ci-run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
run: |
4646
echo "Running checks..."
4747
./ietf/manage.py check
48-
./ietf/manage.py migrate
48+
./ietf/manage.py migrate --fake-initial
4949
echo "Validating migrations..."
5050
if ! ( ietf/manage.py makemigrations --dry-run --check --verbosity 3 ) ; then
5151
echo "Model changes without migrations found."

dev/deploy-to-container/start.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ echo "Running Datatracker checks..."
2727
# Migrate, adjusting to what the current state of the underlying database might be:
2828

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

3232
echo "Starting Datatracker..."
3333
./ietf/manage.py runserver 0.0.0.0:8000 --settings=settings_local

dev/diff/prepare.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@ chmod +x ./docker/scripts/app-create-dirs.sh
1414
./docker/scripts/app-create-dirs.sh
1515

1616
./ietf/manage.py check
17-
./ietf/manage.py migrate
17+
./ietf/manage.py migrate --fake-initial
1818

docker/scripts/app-init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ echo "Running initial checks..."
103103

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

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

108108

109109
echo "-----------------------------------------------------------------"

0 commit comments

Comments
 (0)