From 3074243a5fdd2116fdd34d4cbcd58c45fe35e12a Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Sat, 22 Sep 2012 01:22:58 +0100 Subject: [PATCH] Fix introspection PK comment more. --- django/db/backends/sqlite3/introspection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,