This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1116335 - Updated migration docs.
- Loading branch information
Showing
2 changed files
with
8 additions
and
23 deletions.
There are no files selected for viewing
This file contains 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 characters
This file contains 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 characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,14 @@ | ||
Migrations | ||
========== | ||
|
||
South-managed apps and DB tables | ||
-------------------------------- | ||
Basically all apps are migrated using Django's migration system. | ||
|
||
Basically all apps are migrated using South. We used to use a different | ||
migration tool side by side with South. But that's ancient history. | ||
|
||
You can `convert an app over to South <http://south.aeracode.org/docs/convertinganapp.html#converting-an-app>`_, if it doesn't have | ||
migrations yet, for great justice. | ||
See the Django documentation for the | ||
`migration workflow <https://docs.djangoproject.com/en/1.8/topics/migrations/#workflow>`_. | ||
|
||
How to run the migrations | ||
------------------------- | ||
|
||
Run South via its Django management command:: | ||
|
||
python2.6 manage.py migrate | ||
|
||
Where are the migrations? | ||
------------------------- | ||
|
||
South migrations for first-party, non-vendor apps are in a ``migrations`` | ||
subdirectory. For example, check out ``kuma/demos/migrations``. | ||
Run the migrations via the Django management command:: | ||
|
||
South migrations for third-party apps under ``vendor/`` are found in python | ||
modules under ``migrations/south/`` and are activated by adding them to | ||
``SOUTH_MIGRATION_MODULES`` in ``settings.py``. See | ||
`the South docs <http://south.aeracode.org/docs/settings.html#setting-south-migration-modules>`_ about this. | ||
python manage.py migrate |