Skip to content

Commit fcfb730

Browse files
committed
Refs #30033 -- Doc'd change regarding apps without migrations depending on apps with migrations.
The addition of self.connection.check_constraints() in 7289874 is the cause.
1 parent 7e3bf26 commit fcfb730

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

docs/releases/2.2.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,13 @@ Miscellaneous
446446
:class:`~django.db.models.Variance` aggregate functions now return a
447447
``Decimal`` instead of a ``float`` when the input is ``Decimal``.
448448

449+
* Tests will fail on SQLite if apps without migrations have relations to apps
450+
with migrations. This has been a documented restriction since migrations were
451+
added in Django 1.7, but it fails more reliably now. You'll see tests failing
452+
with errors like ``no such table: <app_label>_<model>``. This was observed
453+
with several third-party apps that had tests models without migrations. You
454+
must add migrations for such models.
455+
449456
.. _deprecated-features-2.2:
450457

451458
Features deprecated in 2.2

docs/topics/migrations.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,10 @@ restrict to a single app. Restricting to a single app (either in
191191
a guarantee; any other apps that need to be used to get dependencies correct
192192
will be.
193193

194+
Apps without migrations must not have relations (``ForeignKey``,
195+
``ManyToManyField``, etc.) to apps with migrations. Sometimes it may work, but
196+
it's not supported.
197+
194198
.. _migration-files:
195199

196200
Migration files

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy