mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 05:20:12 +03:00
Only remove db.sqlite3
This commit is contained in:
parent
b904effab7
commit
ef11535aa5
|
@ -43,7 +43,7 @@ And now we can add a `.save()` method to our model class:
|
||||||
When that's all done we'll need to update our database tables.
|
When that's all done we'll need to update our database tables.
|
||||||
Normally we'd create a database migration in order to do that, but for the purposes of this tutorial, let's just delete the database and start again.
|
Normally we'd create a database migration in order to do that, but for the purposes of this tutorial, let's just delete the database and start again.
|
||||||
|
|
||||||
rm -f tmp.db db.sqlite3
|
rm -f db.sqlite3
|
||||||
rm -r snippets/migrations
|
rm -r snippets/migrations
|
||||||
python manage.py makemigrations snippets
|
python manage.py makemigrations snippets
|
||||||
python manage.py migrate
|
python manage.py migrate
|
||||||
|
|
Loading…
Reference in New Issue
Block a user