Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: change the way migrations are invoked for actions and dev builds#5356

Merged
merged 1 commit into from Mar 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
chore: change the way migrations are invoked for actions and dev builds
  • Loading branch information
rjsparks committed Mar 16, 2023
commit de9b236a0feabe820b53b14a92b4aeb647b7fbf1
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