Fixed migrations crash on SQLite when altering a model containing partial
indexes (#30754).
Fixed a regression in Django 2.2.4 that caused a crash when filtering with a
Subquery() annotation of a queryset containing
django.contrib.postgres.fields.JSONField or
HStoreField (#30769).