Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/db/migrations
Commit message (Collapse)AuthorAgeFilesLines
* Refs #25618 -- Removed detection of south migrations in ↵Tim Graham2015-10-281-15/+1
| | | | | | | loader. It doesn't seem relevant for anyone upgrading to Django 1.10 and beyond.
* Moved an inner function in db.migrations.state to avoid ↵Simon Charette2015-10-201-20/+24
| | | | redefinition.
* Refs #18012 -- Accounted for reverse proxy relations in ↵Simon Charette2015-10-201-4/+12
| | | | | | migrations. Thanks to Markus for the suggestion and Tim for the review.
* Fixed #25453 -- Reworded makemigration's ↵Benjamin Wohlwend2015-09-231-2/+2
| | | | ask_not_null_alteration suggestion.
* Fixed #24743, #24745 -- Optimized migration plan handlingMarkus Holtermann2015-09-192-27/+81
| | | | | | | | | | | | | | | | The change partly goes back to the old behavior for forwards migrations which should reduce the amount of memory consumption (#24745). However, by the way the current state computation is done (there is no `state_backwards` on a migration class) this change cannot be applied to backwards migrations. Hence rolling back migrations still requires the precomputation and storage of the intermediate migration states. This improvement also implies that Django does not handle mixed migration plans anymore. Mixed plans consist of a list of migrations where some are being applied and others are being unapplied. Thanks Andrew Godwin, Josh Smeaton and Tim Graham for the review as well as everybody involved on the ticket that kept me looking into the issue.
* Refs #24215 -- Fixed Python 3.5 compatiblity for ↵Tim Graham2015-09-171-5/+3
| | | | unhandled lazy ops error.
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-122-4/+13
|
* Refs #24919 -- Raised more helpful error message for ↵Markus Holtermann2015-09-121-0/+7
| | | | disabled migrations
* Fixed #24919 -- Allowed disabling of migrations on a per ↵Markus Holtermann2015-09-121-0/+3
| | | | app basis
* Refs #24215 -- Improved error message for unhandled lazy ↵Alex Hill2015-09-081-3/+36
| | | | model operations.
* Fixed #25259 -- Added comments to header of generated ↵Tyson Clugg2015-08-311-1/+8
| | | | migration files
* Fixed #25280 -- Properly checked regex objects for ↵Markus Holtermann2015-08-273-3/+17
| | | | | | | equality to prevent infinite migrations Thanks Sayid Munawar and Tim Graham for the report, investigation and review.
* Fixed #25308 -- Made MigrationQuestioner respect ↵Jeremy Satterfield2015-08-261-2/+2
| | | | MIGRATION_MODULES setting.
* Fixed #25239 -- Corrected makemigrations numbering if a ↵Caio Ariede2015-08-141-2/+3
| | | | migration has a number-only filename.
* Fixed #25185 -- Added support for functools.partial ↵Piper Merriam2015-07-291-0/+17
| | | | serialization in migrations
* Fixed #25186 -- Improved migration's serialization of ↵Piper Merriam2015-07-291-0/+3
| | | | builtins on Python 2.
* Fixed #24375 -- Added Migration.initial attributeAndrei Kulakov2015-07-134-10/+46
| | | | | | | The new attribute is checked when the `migrate --fake-initial` option is used. initial will be set to True for all initial migrations (this is particularly useful when initial migrations are split) as well as for squashed migrations.
* Fixed #25040 -- Fixed migrations state crash with ↵Kai Richard Koenig2015-07-021-1/+1
| | | | GenericForeignKey
* Refs #20203 -- Allowed adding custom default manager to ↵Andriy Sokolovskiy2015-06-301-1/+4
| | | | | | | | | the model state If the only manager on the model is the default manager defined by Django (`objects = models.Manager()`), this manager will not be added to the model state. If it is custom, it needs to be passed to the model state.
* Used field.clone() where applicableMarkus Holtermann2015-06-281-14/+5
|
* Sorted imports in __init__.py files.Tim Graham2015-06-271-5/+7
|
* Sorted reduce methods in migration optimizerMarkus Holtermann2015-06-161-60/+70
| | | | Thanks Tim Graham for the review.
* Fixed #24828 -- Allowed migration optimization across ↵Markus Holtermann2015-06-162-0/+51
| | | | | | | | | | | | | | | | AlterFooTogether The idea behind this change is, that AlterUniqueTogether, AlterIndexTogether and AlterOrderWithRespectTo can always be moved after an Add/Alter/Rename/RemoveField operation if they don't refer to the respective field and are not empty sets / None. Combined with the optimizations of duplicate AlterUniqueTogether, AlterIndexTogether, and AlterOrderWithRespectTo operations from 128caa1e16ec2627737748f75c8e55600a3df97f, these operations are optimized in a later round of the optimizer. Thanks Tim Graham for the review.
* Fixed #24979 -- Removed usage of inspect.getargspec().Tim Graham2015-06-151-6/+5
|
* Removed django.utils.functional.total_ordering()Tim Graham2015-06-151-1/+1
|
* Changed reduce method lookup in migration optimizer to dictMarkus Holtermann2015-06-141-110/+29
| | | | Thanks Andrew Godwin and Simon Charette for the review.
* Explicitly imported migration operations in optimizerMarkus Holtermann2015-06-141-60/+64
| | | | Thanks Andrew Godwin for the review.
* Optimized duplicate ↵Markus Holtermann2015-06-141-0/+28
| | | | | | AlterModelTable/AlterFooTogether/AlterOWRT Thanks Andrew Godwin for the review.
* Took AlterOrderWithRespectTo into account when ↵Markus Holtermann2015-06-141-0/+6
| | | | | | optimizing migrations Thanks Andrew Godwin for the review.
* Fixed #24899 -- Split migrations ↵Steadman2015-06-051-52/+70
| | | | autodetector._detect_changes() method
* Cleaned up docstring style, per Tim Graham review.Carl Meyer2015-06-041-1/+0
|
* Refs #24628 -- Added a second test and a docstring ↵Carl Meyer2015-06-031-0/+8
| | | | comment to avoid regression.
* Fixed #24628 -- Fixed applied status for squashed ↵Carl Meyer2015-06-032-0/+13
| | | | migrations.
* Fixed #24895 -- Fixed loading a pair of squashed ↵Carl Meyer2015-06-021-8/+22
| | | | migrations with a dependency.
* Fixed #24883 -- Added MigrationGraph.__repr__()Yoong Kang Lim2015-06-011-4/+8
|
* Fixed #24340 -- Added nested deconstruction for list, ↵Matt Westcott2015-05-261-14/+28
| | | | | | | tuple and dict values Nested deconstruction should recursively deconstruct items within list, tuple and dict values.
* Fixed #24848 -- Fixed ValueError for faulty migrations ↵Marten Kenbeek2015-05-251-0/+2
| | | | | | | | | module. Added apps to unmigrated apps if the migrations module is a file or a folder missing __init__.py. Thanks to Ernest0x for the bug report.
* Removed unnecessary arguments in .get method callsPiotr Jakimiak2015-05-131-7/+7
|
* Fixed #24742 -- Made runserver.check_migrations ignore ↵Claude Paroz2015-05-132-2/+13
| | | | | | | read-only databases Thanks Luis Del Giudice for the report, and Aymeric Augustin and Markus Holtermann for the reviews.
* Fixed #24693 -- Added label and label_lower property to ↵Luis Del Giudice2015-05-021-4/+3
| | | | Model._meta
* Moved migration exception classes to shared moduleMarkus Holtermann2015-05-025-47/+64
| | | | Thanks Aymeric Augustin for the review.
* Fixed #24725 -- Allowed renaming of target models in ↵Markus Holtermann2015-04-301-1/+1
| | | | | | | | | | ManyToMany relations This is a regression caused by introducing rendered migration states in 1aa3e09c2043 and the _meta refactoring in fb48eb05816b. Thanks to Danilo Bargen for reporting the issue and Marten Kenbeek and Tim Graham for triaging the bug and providing the initial test case.
* Fixed #24701 -- Converted model manager names to unicode ↵Markus Holtermann2015-04-251-5/+7
| | | | | | | in migrations Thanks to Reto Aebersold for reporting the issue and Tim Graham and Claude Paroz for the review.
* Fixed #24573 -- Considered new related models for reloadingMarkus Holtermann2015-04-211-2/+15
| | | | Thanks tttomekkk for the report.
* Refs #24354 -- Prevented repointing of relations on ↵Matthew Wilkes2015-04-211-0/+4
| | | | | | | | | superclasses when migrating a subclass's name change The issue was hidden on 1.8+ until #24573 due to a bug inside the model reloading process. Forwardport of patch from ae87ad005f7b62f5fa5a29ef07443fa1bbb9baf0
* Fixed #24591 -- Optimized cloning of ModelState objects.Marten Kenbeek2015-04-211-3/+14
| | | | | Changed ModelState.clone() to create a shallow copy of self.fields and self.managers.
* Refs #24397 -- Sped up model reloading in ProjectState.Marten Kenbeek2015-04-201-25/+33
| | | | | Created bulk_update() context manager on StateApps. Sped up unregistering models in reload_models() by using this context mananger.
* Fixed #23879 -- Allowed model migration skip based on ↵Claude Paroz2015-04-181-1/+1
| | | | | | | feature/vendor Thanks Carl Meyer for the report and review, and Tim Graham for the review.
* Fixed #24514 -- Made migration writer omit models import ↵Christopher Luc2015-04-101-2/+10
| | | | if it's unused.
* Fixed #24513 -- Made sure a model is only rendered once ↵Patryk Zawadzki2015-04-071-14/+12
| | | | | | | | | during reloads This also prevents state modifications from corrupting previous states. Previously, when a model defining a relation was unregistered first, clearing the cache would cause its related models' _meta to be cleared and would result in the old models losing track of their relations.