Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/migrations/test_autodetector.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #23395 -- Limited line lengths to 119 characters.Dražen Odobašić2015-09-121-1/+4
|
* Refs #24590 -- Ensured isolation between autodetector testsMarkus Holtermann2015-08-281-51/+65
| | | | Fixed a regression introduced in e1427cc609fa6ab247501b101cfb3c0092aba55b when running tests in reverse order.
* Fixed #25280 -- Properly checked regex objects for ↵Markus Holtermann2015-08-271-0/+43
| | | | | | | equality to prevent infinite migrations Thanks Sayid Munawar and Tim Graham for the report, investigation and review.
* Fixed typo in tests/migrations/test_autodetector.py.Tim Graham2015-08-201-6/+6
|
* Fixed #21127 -- Started deprecation toward requiring ↵Flavio Curella2015-07-281-35/+35
| | | | on_delete for ForeignKey/OneToOneField
* Fixed #24375 -- Added Migration.initial attributeAndrei Kulakov2015-07-131-0/+3
| | | | | | | 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.
* Used mock in MigrationQuestioner testsMarkus Holtermann2015-06-231-44/+28
| | | | Thanks Andriy Sokolovskiy and Simon Charette for the review.
* Fixed #24828 -- Allowed migration optimization across ↵Markus Holtermann2015-06-161-3/+4
| | | | | | | | | | | | | | | | 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 #24340 -- Added nested deconstruction for list, ↵Matt Westcott2015-05-261-1/+208
| | | | | | | tuple and dict values Nested deconstruction should recursively deconstruct items within list, tuple and dict values.
* Fixed #24537 -- Ignored field order in RenameModel detectionMarkus Holtermann2015-03-281-0/+31
| | | | | Thanks to David Sanders for the report and test and Simon Charette for the review.
* Renamed Field.rel attribute to remote_fieldAnssi Kääriäinen2015-03-251-5/+5
| | | | | | | | Field.rel is now deprecated. Rel objects have now also remote_field attribute. This means that self == self.remote_field.remote_field. In addition, made the Rel objects a bit more like Field objects. Still, marked ManyToManyFields as null=True.
* Fixed #24435 -- Prevented m2m field removal and addition ↵Markus Holtermann2015-03-041-0/+14
| | | | | | | in migrations when changing blank Thanks Mark Tranchant for the report an Tim Graham for the test and review.
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-5/+5
|
* Fixed #23745 -- Reused states as much as possible in ↵Claude Paroz2015-01-021-1/+1
| | | | | | migrations Thanks Tim Graham and Markus Holtermann for the reviews.
* Added test for an intermediate swappable model change in ↵Markus Holtermann2014-12-301-0/+19
| | | | | | migration state. refs #22563
* Fixed #23938 -- Added migration support for m2m to ↵Markus Holtermann2014-12-291-0/+37
| | | | | | concrete fields and vice versa Thanks to Michael D. Hoyle for the report and Tim Graham for the review.
* Fixed #24037 -- Prevented data loss possibility when ↵Tim Graham2014-12-231-6/+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 #23405 -- Fixed makemigrations prompt when adding ↵Andriy Sokolovskiy2014-12-151-1/+45
| | | | | | Text/CharField. A default is no longer required.
* Fixed #23822 -- Added support for serializing model ↵Markus Holtermann2014-12-151-4/+33
| | | | | | | 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-0/+23
| | | | table inheritance
* Fixed #23794 -- Fixed migrations crash when removing a ↵Andrzej Pragacz2014-11-211-0/+16
| | | | field that's part of index/unique_together.
* Fixed #23844 -- Used topological sort for migration ↵Patryk Zawadzki2014-11-201-3/+3
| | | | | | | | | | | | | | | 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.
* Cleaned up and reformatted autodetector testsMarkus Holtermann2014-11-191-476/+475
|
* Formatted model states in autodetector testsMarkus Holtermann2014-11-191-47/+208
|
* Revert "Use topological sort for migration operation ↵Tim Graham2014-11-151-3/+3
| | | | | | | | 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-151-3/+3
| | | | | | resolution rather than an ad-hoc algorithm
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-031-2/+2
| | | | Django test suite.
* Fixed #23614 -- Changed the way the migration ↵Markus Holtermann2014-10-291-39/+38
| | | | | | autodetector orders unique/index_together Thanks to Naddiseo for the report and Tim Graham for the review
* Fixed #23629 -- Allowed autodetector to detect changes ↵Tianyi Wang2014-10-201-1/+90
| | | | | | in Meta.db_table. Thanks Naddiseo for reporting.
* Fixed #23609 -- Fixed IntegrityError that prevented ↵Markus Holtermann2014-10-091-0/+75
| | | | | | 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.
* Replaced set([foo, ...]) by {foo, ...} literals. Refs PR ↵Thomas Chaumeny2014-09-281-13/+13
| | | | | | 3282. Thanks Collin Anderson for the review.
* Fixed #23415 -- Added fields for unmanaged and proxy ↵Markus Holtermann2014-09-251-0/+41
| | | | | | model migrations. Thanks sky-chen for the report.
* Fixed #23452 -- Prevented infinite migrations for empty ↵Markus Holtermann2014-09-101-2/+46
| | | | | | unique/index_together. Thanks fwkroon for the report.
* Fixed #22951 -- Checked for types during ↵Andrew Pinkham2014-09-081-0/+25
| | | | | | deep_deconstruct migration serialization process. Thanks Sam Hartsfield for the report.
* Fixed #23302 -- Added --name/-n option to makemigrations ↵Raffaele Salmaso2014-09-031-0/+25
| | | | command
* Fixed #23341 -- Added migration name to nonexistent ↵Raffaele Salmaso2014-08-241-2/+2
| | | | migration error in makemigrations.
* Fixed #23322 -- Use resolved swappable model for ↵Markus Holtermann2014-08-201-0/+82
| | | | dependency resolution during makemigrations
* Fixed migrations tests added in refs #23315.Tim Graham2014-08-201-1/+1
|
* Fixed #23315: Operational dependency fail with mixed ↵Andrew Godwin2014-08-201-72/+65
| | | | create/add
* Fixed #23275: Unmanaged models kept by autodetector, ↵Andrew Godwin2014-08-121-12/+10
| | | | ignored by ops
* Fixed #23101: Prefer doing deletes before creates in ↵Andrew Godwin2014-07-291-25/+10
| | | | | | autodetector. Makes declined or missed renames still work (but drop data).
* Fixed #23121: AlterModelOptions operation not changing ↵Andrew Godwin2014-07-281-0/+7
| | | | state right
* Fixed #23100: Individual FK creation missing dependenciesAndrew Godwin2014-07-281-0/+15
|
* Fixed #22944: Bad dependency on FK alteration in ↵Andrew Godwin2014-07-261-0/+19
| | | | autodetector
* Merge pull request #2938 from dekkers/ticket_23071Andrew Godwin2014-07-251-2/+3
|\ | | | | Fixed #23071 -- Use last migration's name in dependency to other app
| * Fixed #23071 -- Use last migration's name in dependency ↵Jeroen Dekkers2014-07-221-2/+3
| | | | | | | | | | | | | | | | to other app Changed the autodetector to lookup the name of the other app's last migration in the graph and use that as dependency instead of using __latest__.
* | Fixed #23014 -- Infinite migration regression with ↵Tim Graham2014-07-241-6/+16
|/ | | | unique/index_together.
* Fixed #23041: Bad base dependencies for proxy modelsAndrew Godwin2014-07-161-1/+18
|
* Fixed #23008 -- Fixed typo causing bad migration ↵Tim Graham2014-07-151-1/+1
| | | | | | dependencies. Thanks semenov for the report and Florian for investigation.
* Fix commentAndrew Godwin2014-07-101-1/+1
|