From 32e40bbe7115a14947421f9380e64cf34254f86d Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Tue, 1 Oct 2013 10:39:03 -0400 Subject: [PATCH] Fixed #21031 -- Updated schema migrations FAQ. Thanks ramiro for the report. --- docs/faq/models.txt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/docs/faq/models.txt b/docs/faq/models.txt index 69965b66e1..97732131f0 100644 --- a/docs/faq/models.txt +++ b/docs/faq/models.txt @@ -40,17 +40,13 @@ Yes. See :doc:`Integrating with a legacy database `. If I make changes to a model, how do I update the database? ----------------------------------------------------------- +Take a look at Django's support for :mod:`schema migrations +`. + If you don't mind clearing data, your project's ``manage.py`` utility has a :djadmin:`flush` option to reset the database to the state it was in immediately after :djadmin:`syncdb` was executed. -If you do care about deleting data, you'll have to execute the ``ALTER TABLE`` -statements manually in your database. - -There are `external projects which handle schema updates -`_, of which the current -defacto standard is `south `_. - Do Django models support multiple-column primary keys? ------------------------------------------------------