Last active
August 29, 2015 14:04
-
-
Save cipherself/20d06d63d3b138a05f8d to your computer and use it in GitHub Desktop.
Revisions
-
cipherself revised this gist
Aug 6, 2014 . 2 changed files with 39 additions and 38 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,38 +0,0 @@ This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,39 @@ # South ### Initial app migration ```python ./manage.py schemamigration myapp --initial ``` ### Common migrations ```python ./manage.py schemamigration myapp --auto ./manage.py migrate myapp ``` ### Update most recent migration ```python ./manage.py schemamigration myapp --auto --update ./manage.py migrate myapp ``` ### List all migrations ```python ./manage.py migrate --list ``` ### List migrations from a single app ```python ./manage.py migrate myapp --list ``` ### List applied migrations only ```python ./manage.py migrate --list | grep -v "*" ``` -
cipherself revised this gist
Aug 6, 2014 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,9 +2,9 @@ ### Initial app migration ```python ./manage.py schemamigration myapp --initial ``` ### Common migrations -
cipherself created this gist
Aug 6, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,38 @@ # South ### Initial app migration ```python ./manage.py schemamigration myapp --initial ``` ### Common migrations ```python ./manage.py schemamigration myapp --auto ./manage.py migrate myapp ``` ### Update most recent migration ```python ./manage.py schemamigration myapp --auto --update ./manage.py migrate myapp ``` ### List all migrations ```python ./manage.py migrate --list ``` ### List migrations from a single app ```python ./manage.py migrate myapp --list ### List applied migrations only ```python ./manage.py migrate --list | grep -v "*" ```