So erstellen Sie Migrationen in Django
//to create migration files
python manage.py makemigrations
//to migrate migration files
python manage.py migrate
Lazy Leopard
//to create migration files
python manage.py makemigrations
//to migrate migration files
python manage.py migrate
python manage.py makemigrations
python manage.py migrate
$ python manage.py makemigrations && python manage.py migrate
$ git add --all
$ git commit -m "fixed migrate error"
$ git push heroku master
$ heroku run python manage.py makemigrations
$ heroku run python manage.py migrate
--- Done ___
$ python manage.py makemigrations
$ python manage.py migrate
$ python manage.py migrate
Operations to perform:
Apply all migrations: books
Running migrations:
Rendering model states... DONE
Applying books.0003_auto... OK
$ python manage.py makemigrations <application name>
Migrations for 'books':
books/migrations/0003_auto.py:
- Alter field author on book
$ python manage.py migrate
Operations to perform:
Apply all migrations: books
Running migrations:
Rendering model states... DONE
Applying books.0003_auto... OK