Skip to content

Commit

Permalink
Add note about creating initial migration
Browse files Browse the repository at this point in the history
Closes #56
  • Loading branch information
paltman committed Jan 19, 2013
1 parent 6e95ed3 commit 78ca23c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/index.rst
Expand Up @@ -39,10 +39,19 @@ command that attempts to help you discover missing migrations.

* Execute the command line:

$ ./manage.py upgradedb --create|--list|--execute
$ ./manage.py upgradedb --create
$ ./manage.py upgradedb --list
$ ./manage.py upgradedb --execute

$ ./manage.py comparedb

It is useful to create an initial migration when starting any new project (or
adding nashvegas to the project to start tracking schema changes). This can
easily be done with:

$ ./manage.py upgradedb -c > migrations/001_initial.sql

Having this initial migration also helps when running tests.

Options for upgradedb
---------------------
Expand Down

0 comments on commit 78ca23c

Please sign in to comment.