summaryrefslogtreecommitdiff
path: root/django/core/db/backends/postgresql.py
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 /django/core/db/backends/postgresql.py
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 'django/core/db/backends/postgresql.py')
-rw-r--r--django/core/db/backends/postgresql.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/core/db/backends/postgresql.py b/django/core/db/backends/postgresql.py
index dcbd719bdc..e4094f31f5 100644
--- a/django/core/db/backends/postgresql.py
+++ b/django/core/db/backends/postgresql.py
@@ -126,6 +126,9 @@ def get_relations(cursor, table_name):
continue
return relations
+def get_indexes(cursor, table_name):
+ raise NotImplementedError
+
# Register these custom typecasts, because Django expects dates/times to be
# in Python's native (standard-library) datetime/time format, whereas psycopg
# use mx.DateTime by default.