[2.2.x] Unified nonexistent foreign key introspection value for SQLite.
Backport of b777c0675e
from master.
This commit is contained in:
parent
87fad5a392
commit
aaf45d5422
|
@ -272,7 +272,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
||||||
'unique': True,
|
'unique': True,
|
||||||
'columns': [],
|
'columns': [],
|
||||||
'primary_key': False,
|
'primary_key': False,
|
||||||
'foreign_key': False,
|
'foreign_key': None,
|
||||||
'check': False,
|
'check': False,
|
||||||
'index': False,
|
'index': False,
|
||||||
}
|
}
|
||||||
|
@ -290,7 +290,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
||||||
'columns': columns,
|
'columns': columns,
|
||||||
'primary_key': False,
|
'primary_key': False,
|
||||||
'unique': False,
|
'unique': False,
|
||||||
'foreign_key': False,
|
'foreign_key': None,
|
||||||
'index': False,
|
'index': False,
|
||||||
}
|
}
|
||||||
# Get the index info
|
# Get the index info
|
||||||
|
@ -307,7 +307,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
||||||
"columns": [],
|
"columns": [],
|
||||||
"primary_key": False,
|
"primary_key": False,
|
||||||
"unique": bool(unique),
|
"unique": bool(unique),
|
||||||
"foreign_key": False,
|
"foreign_key": None,
|
||||||
"check": False,
|
"check": False,
|
||||||
"index": True,
|
"index": True,
|
||||||
}
|
}
|
||||||
|
@ -337,7 +337,7 @@ class DatabaseIntrospection(BaseDatabaseIntrospection):
|
||||||
"columns": [pk_column],
|
"columns": [pk_column],
|
||||||
"primary_key": True,
|
"primary_key": True,
|
||||||
"unique": False, # It's not actually a unique constraint.
|
"unique": False, # It's not actually a unique constraint.
|
||||||
"foreign_key": False,
|
"foreign_key": None,
|
||||||
"check": False,
|
"check": False,
|
||||||
"index": False,
|
"index": False,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue