summaryrefslogtreecommitdiff
path: root/django/db/migrations
AgeCommit message (Collapse)Author
2015-01-07Refs #22608 -- Optimized migration optimizer and migrate by caching calls to ↵Ulrich Petri
str.lower()
2015-01-06Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
2015-01-02Fixed #23745 -- Reused states as much as possible in migrationsClaude Paroz
Thanks Tim Graham and Markus Holtermann for the reviews.
2015-01-02Passed around the state between migrationsClaude Paroz
Refs #23745.
2015-01-02Added ignore_swappable to StateAppsMarkus Holtermann
Refs #23745.
2015-01-02Replaced migration state render() by apps cached propertyClaude Paroz
Refs #23745.
2014-12-31Renamed variables to avoid name collision with import of django.db.models.Russell Keith-Magee
2014-12-29Fixed #23938 -- Added migration support for m2m to concrete fields and vice ↵Markus Holtermann
versa Thanks to Michael D. Hoyle for the report and Tim Graham for the review.
2014-12-25Fixed #23866 -- Harmonized refs to Django documentation from codeClaude Paroz
2014-12-23Fixed #24037 -- Prevented data loss possibility when changing Meta.managed.Tim Graham
The migrations autodetector now issues AlterModelOptions operations for Meta.managed changes instead of DeleteModel + CreateModel. Thanks iambibhas for the report and Simon and Markus for review.
2014-12-22Fixed #23998 -- Added datetime.time support to migrations questioner.Oscar Ramirez
2014-12-21Fixed #24017 -- Added python_2_unicode_compatible in db/migrationsJosh Schneier
2014-12-16Fixed #23983 -- Fixed a crash in migrations when adding ↵Andriy Sokolovskiy
order_with_respect_to to non-empty table.
2014-12-15Fixed #23405 -- Fixed makemigrations prompt when adding Text/CharField.Andriy Sokolovskiy
A default is no longer required.
2014-12-15Fixed #23822 -- Added support for serializing model managers in migrationMarkus Holtermann
Thanks to Shai Berger, Loïc Bistuer, Simon Charette, Andrew Godwin, Tim Graham, Carl Meyer, and others for their review and input.
2014-12-11Fixed #23956 -- Fixed migration creation for multiple table inheritanceMarkus Holtermann
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-12-03Fixed #23950 -- Prevented calling deconstruct on classes in MigrationWriter.Gavin Wahl
2014-11-28Fixed #23894 -- Made deconstruct methods favor kwargs over argsMarkus Holtermann
2014-11-25Fixed bug in circular dependency algo for migration dependencies.Luke Plant
Previous algo only worked if the first item was a part of the loop, and you would get an infinite loop otherwise (see test). To fix this, it was much easier to do a pre-pass. A bonus is that you now get an error message that actually helps you debug the dependency problem.
2014-11-22Revert "Fixed #23892 -- Made deconstructible classes forwards compatible"Carl Meyer
This reverts commit f36151ed169813f2873e13ca9de616cfa4095321. Adding kwargs to deconstructed objects does not achieve useful forward-compatibility in general, since additional arguments are silently dropped rather than having their intended effect. In fact, it can make the failure more difficult to diagnose. Thanks Shai Berger for discussion.
2014-11-22Fixed #23892 -- Made deconstructible classes forwards compatibleCarl Meyer
2014-11-21Fixed #23794 -- Fixed migrations crash when removing a field that's part of ↵Andrzej Pragacz
index/unique_together.
2014-11-20Fixed #23844 -- Used topological sort for migration operation dependency ↵Patryk Zawadzki
resolution. This removes the concept of equality between operations to guarantee compatilibity with Python 3. Python 3 requires equality to result in identical object hashes. It's impossible to implement a unique hash that preserves equality as operations such as field creation depend on being able to accept arbitrary dicts that cannot be hashed reliably. Thanks Klaas van Schelven for the original patch in 13d613f80011852404198dfafd1f09c0c0ea42e6.
2014-11-19Fixed #23410 -- Avoided unnecessary rollbacks in related apps when migrating ↵Carl Meyer
backwards.
2014-11-19Fixed #22248 -- Made RenameModel reversibleStratos Moros
2014-11-17Fixed #23859 -- Fixed a migration crash when a field is renamed that is part ↵Markus Holtermann
of an index_together
2014-11-17Avoided unneeded calls to state.render() in migrations.twidi
2014-11-17Reordered condition to avoid calling allow_migrate() if unneeded.twidi
2014-11-15Merge pull request #3536 from Zweedeend/ticket_23837Carl Meyer
Fixes #23837: Replace list with deque in migration-planner for improved performance.
2014-11-15Fixed #23835: Changed circular dependency in DFS to be less infiniteAndrew Godwin
2014-11-15Fixes #23837: Replace list.pop(0) by deque.popleft() in dfs function in ↵Niels Kouwenhoven
migrations
2014-11-15Revert "Use topological sort for migration operation dependency resolution"Tim Graham
This commit broke the tests on Python 3. This reverts commit 13d613f80011852404198dfafd1f09c0c0ea42e6.
2014-11-15Use topological sort for migration operation dependency resolutionKlaas van Schelven
rather than an ad-hoc algorithm
2014-11-06Fixed #23770 -- Changed serialization strategy for floats with respect to ↵Markus Holtermann
NaN and Inf Thanks to w0rp for the report
2014-10-30Fixed #23733 -- Fixed squashing migrations that depend on multiple apps.twidi
2014-10-30Fixed #23556 -- Raised a more meaningful error message when migrations refer ↵Markus Holtermann
to an unavailable node
2014-10-29Fixed #23614 -- Changed the way the migration autodetector orders ↵Markus Holtermann
unique/index_together Thanks to Naddiseo for the report and Tim Graham for the review
2014-10-29Limited lines to 119 characters in django/{contrib,db}.Berker Peksag
Refs #23395.
2014-10-24Fixed #23618 -- Allowed apps with no models to still have migrationsClaude Paroz
Basically a4737bf6ae reapplied.
2014-10-23Fixed #23630 -- Made AlterModelTable rename auto-created M2M tables.Tim Graham
Thanks Naddiseo for the report, Andrew Godwin for guidance, and Shai Berger for review.
2014-10-20Fixed #23629 -- Allowed autodetector to detect changes in Meta.db_table.Tianyi Wang
Thanks Naddiseo for reporting.
2014-10-09Fixed #23609 -- Fixed IntegrityError that prevented altering a NULL column ↵Markus Holtermann
into a NOT NULL one due to existing rows Thanks to Simon Charette, Loic Bistuer and Tim Graham for the review.
2014-10-02Fixed #23426 -- Allowed parameters in migrations.RunSQLMarkus Holtermann
Thanks tchaumeny and Loic for reviews.
2014-09-29Fixed #23365 -- Added support for timezone-aware datetimes to migrations.Rudy Mutter
2014-09-29Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny
Thanks Collin Anderson for the review.
2014-09-27Fixed #23560 -- Fixed MigrationWrite to handle builtin types without imports.Loic Bistuer
Thanks Tim Graham for the review.
2014-09-25Fixed #23415 -- Added fields for unmanaged and proxy model migrations.Markus Holtermann
Thanks sky-chen for the report.
2014-09-24Revert "Fixed #23474 -- Prevented migrating backwards from unapplying the ↵Tim Graham
wrong migrations." This reverts commit abcf28a07695a45cb5fb15b81bffc97bea5e0be3.
2014-09-24Fixed #23426 -- Don't require double percent sign in RunSQL without parametersMarkus Holtermann