Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/db/migrations
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed #24037 -- Prevented data loss possibility when ↵Tim Graham2014-12-232-11/+19
| | | | | | | | | changing Meta.managed. 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.
* Fixed #23998 -- Added datetime.time support to ↵Oscar Ramirez2014-12-221-0/+2
| | | | migrations questioner.
* Fixed #24017 -- Added python_2_unicode_compatible in ↵Josh Schneier2014-12-212-2/+5
| | | | db/migrations
* Fixed #23983 -- Fixed a crash in migrations when adding ↵Andriy Sokolovskiy2014-12-161-0/+2
| | | | order_with_respect_to to non-empty table.
* Fixed #23405 -- Fixed makemigrations prompt when adding ↵Andriy Sokolovskiy2014-12-151-2/+5
| | | | | | Text/CharField. A default is no longer required.
* Fixed #23822 -- Added support for serializing model ↵Markus Holtermann2014-12-155-13/+128
| | | | | | | managers in migration Thanks to Shai Berger, Loïc Bistuer, Simon Charette, Andrew Godwin, Tim Graham, Carl Meyer, and others for their review and input.
* Fixed #23956 -- Fixed migration creation for multiple ↵Markus Holtermann2014-12-111-1/+1
| | | | table inheritance
* Fixed #23968 -- Replaced list comprehension with ↵Jon Dufresne2014-12-084-9/+9
| | | | generators and dict comprehension
* Fixed #23950 -- Prevented calling deconstruct on classes ↵Gavin Wahl2014-12-031-14/+14
| | | | in MigrationWriter.
* Fixed #23894 -- Made deconstruct methods favor kwargs ↵Markus Holtermann2014-11-283-29/+80
| | | | over args
* Fixed bug in circular dependency algo for migration ↵Luke Plant2014-11-251-10/+21
| | | | | | | | | | | | dependencies. 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.
* Revert "Fixed #23892 -- Made deconstructible classes ↵Carl Meyer2014-11-234-18/+15
| | | | | | | | | | | forwards compatible" 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.
* Fixed #23892 -- Made deconstructible classes forwards ↵Carl Meyer2014-11-224-15/+18
| | | | compatible
* Fixed #23794 -- Fixed migrations crash when removing a ↵Andrzej Pragacz2014-11-211-11/+5
| | | | field that's part of index/unique_together.
* Fixed #23844 -- Used topological sort for migration ↵Patryk Zawadzki2014-11-206-53/+176
| | | | | | | | | | | | | | | operation dependency 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.
* Fixed #23410 -- Avoided unnecessary rollbacks in related ↵Carl Meyer2014-11-201-6/+11
| | | | apps when migrating backwards.
* Fixed #22248 -- Made RenameModel reversibleStratos Moros2014-11-191-2/+0
|
* Fixed #23859 -- Fixed a migration crash when a field is ↵Markus Holtermann2014-11-171-6/+7
| | | | renamed that is part of an index_together
* Avoided unneeded calls to state.render() in migrations.twidi2014-11-172-14/+14
|
* Reordered condition to avoid calling allow_migrate() if ↵twidi2014-11-171-2/+2
| | | | unneeded.
* Merge pull request #3536 from Zweedeend/ticket_23837Carl Meyer2014-11-151-7/+10
|\ | | | | Fixes #23837: Replace list with deque in migration-planner for improved performance.
| * Fixes #23837: Replace list.pop(0) by deque.popleft() in ↵Niels Kouwenhoven2014-11-151-7/+10
| | | | | | | | dfs function in migrations
* | Fixed #23835: Changed circular dependency in DFS to be ↵Andrew Godwin2014-11-151-2/+2
|/ | | | less infinite
* Revert "Use topological sort for migration operation ↵Tim Graham2014-11-152-49/+22
| | | | | | | | dependency resolution" This commit broke the tests on Python 3. This reverts commit 13d613f80011852404198dfafd1f09c0c0ea42e6.
* Use topological sort for migration operation dependency ↵Klaas van Schelven2014-11-152-22/+49
| | | | | | resolution rather than an ad-hoc algorithm
* Fixed #23770 -- Changed serialization strategy for ↵Markus Holtermann2014-11-061-3/+8
| | | | | | floats with respect to NaN and Inf Thanks to w0rp for the report
* Fixed #23733 -- Fixed squashing migrations that depend ↵twidi2014-10-301-2/+9
| | | | on multiple apps.
* Fixed #23556 -- Raised a more meaningful error message ↵Markus Holtermann2014-10-302-13/+83
| | | | when migrations refer to an unavailable node
* Fixed #23614 -- Changed the way the migration ↵Markus Holtermann2014-10-291-4/+24
| | | | | | autodetector orders unique/index_together Thanks to Naddiseo for the report and Tim Graham for the review
* Limited lines to 119 characters in django/{contrib,db}.Berker Peksag2014-10-299-29/+65
| | | | Refs #23395.
* Fixed #23618 -- Allowed apps with no models to still ↵Claude Paroz2014-10-241-2/+0
| | | | | | have migrations Basically a4737bf6ae reapplied.
* Fixed #23630 -- Made AlterModelTable rename auto-created ↵Tim Graham2014-10-231-0/+8
| | | | | | | M2M tables. Thanks Naddiseo for the report, Andrew Godwin for guidance, and Shai Berger for review.
* Fixed #23629 -- Allowed autodetector to detect changes ↵Tianyi Wang2014-10-201-0/+18
| | | | | | in Meta.db_table. Thanks Naddiseo for reporting.
* Fixed #23609 -- Fixed IntegrityError that prevented ↵Markus Holtermann2014-10-093-29/+81
| | | | | | altering a NULL column into a NOT NULL one due to existing rows Thanks to Simon Charette, Loic Bistuer and Tim Graham for the review.
* Fixed #23426 -- Allowed parameters in migrations.RunSQLMarkus Holtermann2014-10-021-6/+18
| | | | Thanks tchaumeny and Loic for reviews.
* Fixed #23365 -- Added support for timezone-aware ↵Rudy Mutter2014-09-302-8/+23
| | | | datetimes to migrations.
* Replaced set([foo, ...]) by {foo, ...} literals. Refs PR ↵Thomas Chaumeny2014-09-282-14/+15
| | | | | | 3282. Thanks Collin Anderson for the review.
* Fixed #23560 -- Fixed MigrationWrite to handle builtin ↵Loic Bistuer2014-09-261-1/+4
| | | | | | types without imports. Thanks Tim Graham for the review.
* Fixed #23415 -- Added fields for unmanaged and proxy ↵Markus Holtermann2014-09-251-47/+45
| | | | | | model migrations. Thanks sky-chen for the report.
* Revert "Fixed #23474 -- Prevented migrating backwards ↵Tim Graham2014-09-241-9/+5
| | | | | | from unapplying the wrong migrations." This reverts commit abcf28a07695a45cb5fb15b81bffc97bea5e0be3.
* Fixed #23426 -- Don't require double percent sign in ↵Markus Holtermann2014-09-241-2/+2
| | | | RunSQL without parameters
* Called table_names instead of get_table_list in migrationsClaude Paroz2014-09-232-2/+2
|
* Fixed #23474 -- Prevented migrating backwards from ↵valtron2014-09-151-5/+9
| | | | unapplying the wrong migrations.
* Fixed #23484 -- Add comment in AppConfigStub clarifying ↵Carl Meyer2014-09-121-0/+3
| | | | app name vs app label.
* Fixed #23483 -- Prevented ImproperlyConfigured with ↵Szilveszter Farkas2014-09-121-0/+1
| | | | | | | | dotted app names Made sure the app labels stay unique for the AppConfigStubs, so migrations wouldn't fail if two dotted app names has the same last part (e.g. django.contrib.auth and vendor.auth)
* Corrected grammar in migrations error message.Markus Bertheau2014-09-101-2/+2
|
* Fixed #23452 -- Prevented infinite migrations for empty ↵Markus Holtermann2014-09-102-12/+13
| | | | | | unique/index_together. Thanks fwkroon for the report.
* Updated links to point to dev documentation.Markus Holtermann2014-09-081-6/+7
|
* Fixed #22951 -- Checked for types during ↵Andrew Pinkham2014-09-081-1/+1
| | | | | | deep_deconstruct migration serialization process. Thanks Sam Hartsfield for the report.
* switch out recursive dfs for stack based approach, to ↵Ben Reilly2014-09-061-25/+20
| | | | avoid possibly hitting the recursion limit