diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-06-30 04:46:59 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2008-06-30 04:46:59 +0000 |
| commit | f9df4d1435fd3382fdcc06f75c1c8d62bfe78ec6 (patch) | |
| tree | 1ed84020b3c2111537b7231d4e42a83cba7be776 /django/db/backends/__init__.py | |
| parent | b0bc8b9dfd6069e53cd73c1d3411f995a05f0a5a (diff) | |
Make sure we only create the minimum number of table indexes for MySQL.
This patch simplifies a bunch of code for all backends and removes some
duplicate index creation for MySQL, in particular (versions 4.x and later).
Patch from Nis Jørgensen.
Fixed #5671, #5680, #7170, #7186.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7790 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/db/backends/__init__.py')
| -rw-r--r-- | django/db/backends/__init__.py | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index 7a4e46a7d7..36a2339638 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -41,8 +41,6 @@ class BaseDatabaseWrapper(local): class BaseDatabaseFeatures(object): allows_group_by_ordinal = True - allows_unique_and_pk = True - autoindexes_primary_keys = True inline_fk_references = True needs_datetime_string_cast = True supports_constraints = True |
