Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django migrations

$ 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
Source by docs.djangoproject.com #
 
PREVIOUS NEXT
Tagged: #django #migrations
ADD COMMENT
Topic
Name
7+5 =