Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix introspection PK comment more.

  • Loading branch information...
commit 3074243a5fdd2116fdd34d4cbcd58c45fe35e12a 1 parent 9234131
@andrewgodwin andrewgodwin authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/db/backends/sqlite3/
3  django/db/backends/sqlite3/
@@ -209,7 +209,8 @@ def get_constraints(self, cursor, table_name):
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,
Please sign in to comment.
Something went wrong with that request. Please try again.