Skip to content

Commit

Permalink
Chore: init deletes existing db (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
thekaveman authored Jun 9, 2022
2 parents 57e7950 + db5feb0 commit 14c5255
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 5 additions & 0 deletions bin/init.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
#!/usr/bin/env bash
set -eu

# remove existing (old) database file
# -f forces the delete (and avoids an error when the file doesn't exist)

rm -f django.db

# run database migrations

python manage.py migrate
Expand Down
2 changes: 0 additions & 2 deletions docs/configuration/fixtures.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ The file is called `django.db` and the following commands will rebuild it.
Run these commands from within the repository root, inside the devcontainer:

```bash
rm django.db

bin/init.sh
```

Expand Down

0 comments on commit 14c5255

Please sign in to comment.