Fix introspection PK comment more.

This commit is contained in:
Andrew Godwin 2012-09-22 01:22:58 +01:00
parent 9234131c05
commit 3074243a5f
1 changed files with 2 additions and 1 deletions

View File

@ -209,7 +209,8 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
if pk_column: if pk_column:
# SQLite doesn't actually give a name to the PK constraint, # SQLite doesn't actually give a name to the PK constraint,
# so we invent one. This is fine, as the SQLite backend never # 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__"] = { constraints["__primary__"] = {
"columns": set([pk_column]), "columns": set([pk_column]),
"primary_key": True, "primary_key": True,