summaryrefslogtreecommitdiff
path: root/django/db/migrations/recorder.py
AgeCommit message (Collapse)Author
2023-05-25Made MigrationRecorder cache has_table() result if django_migrations table ↵Tom Forbes
exists.
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2020-02-06Fixed #31233 -- Closed database connections and cursors after use.Jon Dufresne
2020-02-04Simplified imports from django.db and django.contrib.gis.db.Nick Pope
2019-10-21Fixed #30876 -- Moved classproperty() decorator to the django.utils.functional.André Ericson
2019-03-07Refs #30186 -- Changed MigrationRecorder.applied_migrations() to return a dict.Tim Schilling
2019-01-22Fixed #30111 -- Fixed AppRegistryNotReady error with django.contrib.postgres ↵Nasir Hussain
in INSTALLED_APPS. Regression in e192223ed996ed30fe83787efdfa7f2be6b1a2ee.
2017-06-19Refs #27858 -- Fixed typo in MigrationRecorder.applied_migrations() comment.Mariusz Felisiak
2017-06-19Fixed #27858 -- Prevented read-only management commands from creating the ↵Marti Raudsepp
django_migrations table. MigrationRecorder now assumes that if the django_migrations table doesn't exist, then no migrations are applied. Reverted documentation change from refs #23808.
2017-06-01Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.Jon Dufresne
2017-02-28Refs #27656 -- Updated django.db docstring verbs according to PEP 257.Anton Samarchyan
2017-01-19Refs #23919 -- Stopped inheriting from object to define new style classes.Simon Charette
2017-01-18Refs #23919 -- Removed python_2_unicode_compatible decorator usageClaude Paroz
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2015-05-13Fixed #24742 -- Made runserver.check_migrations ignore read-only databasesClaude Paroz
Thanks Luis Del Giudice for the report, and Aymeric Augustin and Markus Holtermann for the reviews.
2015-01-17Removed the syncdb command per deprecation timeline.Tim Graham
2014-09-23Called table_names instead of get_table_list in migrationsClaude Paroz
2014-05-06Added a bunch of missing unicode_literalsClaude Paroz
Refs #22564.
2014-04-30Fixed #22474 -- Made migration recorder aware of multiple databasesClaude Paroz
Thanks Tim Graham for the review.
2013-12-24Renamed AppCache to Apps.Aymeric Augustin
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
2013-12-22Moved apps back in the toplevel django namespace.Aymeric Augustin
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
2013-12-17Deborgified the app cache.Aymeric Augustin
Improved Andrew's hack to create temporary app caches to handle migrations. Now the main app cache has a "master" flag set to True (which is a non-default keyword argument, thus unlikely to be used by mistake). Other app cache instances have "master" set to False. The only sanctioned way to access the app cache is by importing django.core.apps.app_cache. If you were instanciating an app cache and relying on the Borg pattern, you'll have to refactor your code.
2013-12-17Moved the new app cache inside core.Aymeric Augustin
2013-12-17Moved django.db.models.loading to django.apps.cache.Aymeric Augustin
This commit doesn't contain any code changes; it's purely a refactoring.
2013-10-23Fixed #21298 -- Fixed E301 pep8 warningsAlasdair Nicol
2013-07-26Fix timezone warnings if USE_TZ=TrueAndrew Godwin
2013-06-19First stab at some migration creation commandsAndrew Godwin
2013-05-18Turn SchemaEditor into a context managerAndrew Godwin
2013-05-10First phase of loading migrations from diskAndrew Godwin