Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fix introspection PK comment more.

  • Loading branch information...
commit 3074243a5fdd2116fdd34d4cbcd58c45fe35e12a 1 parent 9234131
Andrew Godwin authored September 22, 2012
3  django/db/backends/sqlite3/introspection.py
@@ -209,7 +209,8 @@ def get_constraints(self, cursor, table_name):
209 209
         if pk_column:
210 210
             # SQLite doesn't actually give a name to the PK constraint,
211 211
             # so we invent one. This is fine, as the SQLite backend never
212  
-            # deletes PK constraints by name.
  212
+            # deletes PK constraints by name, as you can't delete constraints
  213
+            # in SQLite; we remake the table with a new PK instead.
213 214
             constraints["__primary__"] = {
214 215
                 "columns": set([pk_column]),
215 216
                 "primary_key": True,

0 notes on commit 3074243

Please sign in to comment.
Something went wrong with that request. Please try again.