summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-02-18 21:26:28 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-02-18 21:26:28 +0000
commitac97cf54af32a1bf4426e613909f0a9af3e02c94 (patch)
treeb45f02e394c4cb4e21b51083bd31a6823ee6222b /docs
parentb46128225d348db97cf54cc0e5cfe91780dbb386 (diff)
Fixed #1286 -- Improved 'inspectdb' so that it introspects primary_key=True and unique=True for MySQL. Thanks, gandalf@owca.info
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2346 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'docs')
-rw-r--r--docs/django-admin.txt11
1 files changed, 6 insertions, 5 deletions
diff --git a/docs/django-admin.txt b/docs/django-admin.txt
index 36ebe8ba67..9600a72acf 100644
--- a/docs/django-admin.txt
+++ b/docs/django-admin.txt
@@ -112,12 +112,13 @@ output:
This feature is meant as a shortcut, not as definitive model generation. After
you run it, you'll want to look over the generated models yourself to make
-customizations. In particular, you'll need to do this:
+customizations. In particular, you'll need to rearrange models' order, so that
+models that refer to other models are ordered properly.
- * Rearrange models' order, so that models that refer to other models are
- ordered properly.
- * Add ``primary_key=True`` to one field in each model. The ``inspectdb``
- doesn't yet introspect primary keys.
+If you're using Django 0.90 or 0.91, you'll need to add ``primary_key=True`` to
+one field in each model. In the Django development version, primary keys are
+automatically introspected for MySQL, and Django puts in the
+``primary_key=True`` where needed.
``inspectdb`` works with PostgreSQL, MySQL and SQLite. Foreign-key detection
only works in PostgreSQL.