mirror of
https://github.com/django/django.git
synced 2025-06-05 11:39:13 +00:00
Fix introspection PK comment more.
This commit is contained in:
parent
9234131c05
commit
3074243a5f
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user