Mark ForeignKeys as initially deferred references on SQLite3.
Review Request #10269 — Created Oct. 23, 2018 and submitted
Up until very recently, SQLite3 offered pretty limited capabilities for
altering tables, necessitating a reconstruction and re-import of data
for tables. The logic for this wasn't retaining any field references for
ForeignKey
s. We now add those when constructing non-temporary tables
in SQLite3.
SQLite3 unit tests pass on Django 1.6 through 1.11 and 2.1 (with other
pending changes).