Skip to content

Commit

Permalink
Fix unapplied migration in sample database
Browse files Browse the repository at this point in the history
The migration added in PR 111 [0] wasn't applied to the sample database
file, which generates a warning every time it is used. This commit
applies that migration to the sample database file.

It also modifies the test GitHub Action to check for unapplied
migrations going forward.

[0] #111
  • Loading branch information
chosak committed Oct 15, 2024
1 parent 5e86f3b commit e3b0c4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
run: black . --check
- name: Check for missing migrations
run: ./manage.py makemigrations --check
- name: Check that all migrations have been applied to the sample database
run: ./manage.py migrate --check
- name: The test fixture should be kept in sync with the sample database
run: ./manage.py dumpdata --indent=4 crawler | diff crawler/fixtures/sample.json -
- name: Run Python tests
Expand Down
Binary file modified sample/sample.sqlite3
Binary file not shown.

0 comments on commit e3b0c4c

Please sign in to comment.