diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2012-09-22 01:22:58 +0100 |
|---|---|---|
| committer | Andrew Godwin <andrew@aeracode.org> | 2012-09-22 01:22:58 +0100 |
| commit | 3074243a5fdd2116fdd34d4cbcd58c45fe35e12a (patch) | |
| tree | 1d9d0dc9bb28a4d6c4d7b0a8e1e58ec6ed920cbb | |
| parent | 9234131c05ec0c63e035883d9586cb1630f3881a (diff) | |
Fix introspection PK comment more.
| -rw-r--r-- | django/db/backends/sqlite3/introspection.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/django/db/backends/sqlite3/introspection.py b/django/db/backends/sqlite3/introspection.py index 711ee6fac5..c364468516 100644 --- a/django/db/backends/sqlite3/introspection.py +++ b/django/db/backends/sqlite3/introspection.py @@ -209,7 +209,8 @@ class DatabaseIntrospection(BaseDatabaseIntrospection): if pk_column: # SQLite doesn't actually give a name to the PK constraint, # so we invent one. This is fine, as the SQLite backend never - # deletes PK constraints by name. + # deletes PK constraints by name, as you can't delete constraints + # in SQLite; we remake the table with a new PK instead. constraints["__primary__"] = { "columns": set([pk_column]), "primary_key": True, |
