django1/django/db/migrations
William Schwartz e64c1d8055 Fixed #32302 -- Allowed migrations to be loaded from regular packages with no __file__ attribute.
The migrations loader prevents the use of PEP-420 namespace packages
for holding apps' migrations modules. Previously the loader tested for
this only by checking that app.migrations.__file__ is present. This
prevented migrations' being found in frozen Python environments that
don't set __file__ on any modules. Now the loader *additionally* checks
whether app.migrations.__path__ is a list because namespace packages
use a different type for __path__. Namespace packages continue to be
forbidden, and, in fact, users of normal Python environments should
experience no change whatsoever.
2020-12-29 12:54:08 +01:00
..
operations Fixed #32262 -- Fixed migration optimization for model creation and Meta options removal. 2020-12-18 06:57:57 +01:00
__init__.py Implement swappable model support for migrations 2014-01-19 16:43:12 +00:00
autodetector.py Fixed #31831 -- Fixed migration operations ordering when adding order_with_respect_to and constraints/indexes. 2020-08-08 20:43:45 +02:00
exceptions.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
executor.py Refs #31318 -- Moved MigrationExecutor.collect_sql() to MigrationLoader. 2020-03-09 08:23:56 +01:00
graph.py Refs #29784 -- Switched to https:// links where available. 2018-09-26 08:48:47 +02:00
loader.py Fixed #32302 -- Allowed migrations to be loaded from regular packages with no __file__ attribute. 2020-12-29 12:54:08 +01:00
migration.py Fixed #31703 -- Made makemigrations name all initial migrations "initial". 2020-06-24 07:18:45 +02:00
optimizer.py Refs #22608 -- Made app_label required when optimizing migrations. 2020-04-09 10:08:02 +02:00
questioner.py Simplified imports from django.db and django.contrib.gis.db. 2020-02-04 13:20:06 +01:00
recorder.py Fixed #31233 -- Closed database connections and cursors after use. 2020-02-06 15:35:23 +01:00
serializer.py Fixed #31529 -- Added support for serialization of pathlib.Path/PurePath and os.PathLike in migrations. 2020-06-24 11:45:34 +02:00
state.py Refs #32285 -- Made AppConfigStub do not call super().__init__(). 2020-12-22 13:26:27 +01:00
utils.py Refs #23919 -- Stopped inheriting from object to define new style classes. 2017-01-19 08:39:46 +01:00
writer.py Fixed #30147 -- Simplified directory creation with os.makedirs(..., exist_ok=True). 2019-01-31 12:53:36 -05:00