Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/migrations
Commit message (Collapse)AuthorAgeFilesLines
...
* 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 #23998 -- Added datetime.time support to ↵Oscar Ramirez2014-12-221-0/+4
| | | | migrations questioner.
* Fixed #24017 -- Added python_2_unicode_compatible in ↵Josh Schneier2014-12-211-1/+17
| | | | db/migrations
* Fixed #23983 -- Fixed a crash in migrations when adding ↵Andriy Sokolovskiy2014-12-161-0/+9
| | | | order_with_respect_to to non-empty table.
* Refs #23947 -- Improved migrations tests table cleanup.Diego Guimarães2014-12-161-24/+19
| | | | Copied technique from schema tests.
* Fixed reverse test execution for migration manager testsMarkus Holtermann2014-12-151-5/+6
| | | | Thanks to Tim Graham for reporting the issue; refs #23822
* 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-155-15/+263
| | | | | | | 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 #23950 -- Prevented calling deconstruct on classes ↵Gavin Wahl2014-12-031-0/+11
| | | | in MigrationWriter.
* Fixed #23909 -- Prevented crash when collecting SQL for ↵Claude Paroz2014-12-011-0/+6
| | | | | | | RunSQL Thanks James Rivett-Carnac for the report and Markus Holtermann for the review.
* Corrected a docstring in ↵wrwrwr2014-12-011-1/+1
| | | | tests/migrations/test_operations.py.
* Replaced router.routers usage with ↵wrwrwr2014-12-011-11/+3
| | | | override_settings(DATABASE_ROUTERS); refs #23933.
* Fixed #23880 -- Added missing index_together handling ↵Markus Holtermann2014-12-011-4/+2
| | | | for SQLite
* Fixed #23728 -- Added the --exit option to makemigrations.Tim Heap2014-11-281-0/+12
| | | | | If no changes that need migrations are found, `makemigrations --exit` exits with error code 1.
* Fixed #23894 -- Made deconstruct methods favor kwargs ↵Markus Holtermann2014-11-281-4/+98
| | | | over args
* Fixed flake8 warnings.Tim Graham2014-11-251-3/+3
|
* Fixed bug in circular dependency algo for migration ↵Luke Plant2014-11-251-0/+14
| | | | | | | | | | | | 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.
* Fixed #23794 -- Fixed migrations crash when removing a ↵Andrzej Pragacz2014-11-211-0/+16
| | | | field that's part of index/unique_together.
* Fixed duplicate index error on Oracle; refs #23859.Markus Holtermann2014-11-201-1/+7
| | | | Refers to regression introduced in 7b4a994599b75a07cb07d1e0cc26b3bbf25ab7a6
* Fixed #23844 -- Used topological sort for migration ↵Patryk Zawadzki2014-11-202-35/+6
| | | | | | | | | | | | | | | 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.
* Added another migration-executor test to avoid regressions.Carl Meyer2014-11-201-0/+35
|
* Fixed #23410 -- Avoided unnecessary rollbacks in related ↵Carl Meyer2014-11-201-1/+95
| | | | apps when migrating backwards.
* Fixed #23872 -- Removed sensitivity of migrations tests ↵Carl Meyer2014-11-192-15/+19
| | | | to CWD.
* Cleaned up and reformatted autodetector testsMarkus Holtermann2014-11-191-476/+475
|
* Formatted model states in autodetector testsMarkus Holtermann2014-11-191-47/+208
|
* Fixed #22248 -- Made RenameModel reversibleStratos Moros2014-11-191-2/+1
|
* Fixed #23799 -- Made makemigrations respect --no-optimize.Tillmann Karras2014-11-181-0/+39
| | | | Thanks to yamila-moreno for the idea of a skip message.
* Fixed #23859 -- Fixed a migration crash when a field is ↵Markus Holtermann2014-11-171-2/+6
| | | | renamed that is part of an index_together
* Removed references to the deprecated assertRaisesRegexp ↵Simon Charette2014-11-161-2/+3
| | | | method.
* Fixed #23835: Changed circular dependency in DFS to be ↵Andrew Godwin2014-11-151-0/+27
| | | | less infinite
* 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 #23770 -- Changed serialization strategy for ↵Markus Holtermann2014-11-061-0/+5
| | | | | | floats with respect to NaN and Inf Thanks to w0rp for the report
* Fixed #23620 -- Used more specific assertions in the ↵Berker Peksag2014-11-032-14/+14
| | | | Django test suite.
* Fixed #23733 -- Fixed squashing migrations that depend ↵twidi2014-10-3012-0/+133
| | | | on multiple apps.
* Fixed #23556 -- Raised a more meaningful error message ↵Markus Holtermann2014-10-3017-5/+286
| | | | when migrations refer to an unavailable node
* 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
* Added missing available app in migrations test caseClaude Paroz2014-10-231-0/+1
| | | | | In some test combinations, having contrib.auth available but not contrib.contenttypes can produce failures while creating permissions.
* Fixed #23630 -- Made AlterModelTable rename auto-created ↵Tim Graham2014-10-231-1/+36
| | | | | | | M2M tables. Thanks Naddiseo for the report, Andrew Godwin for guidance, and Shai Berger for review.
* Made testing of stdout and stderr more consistent.Loic Bistuer2014-10-221-67/+66
| | | | Refs #23663.
* Removed unneeded override_system_checksClaude Paroz2014-10-211-34/+1
| | | | Refs #23685.
* Fixed #23629 -- Allowed autodetector to detect changes ↵Tianyi Wang2014-10-201-1/+90
| | | | | | in Meta.db_table. Thanks Naddiseo for reporting.
* Revert "Fixed #23650 -- Prevented migrate from calling ↵Claude Paroz2014-10-201-21/+0
| | | | | | | | checks 3 times" This reverts commit 8d6e1afe0be0570253a508f43e2ef89ae640984e. call_command now always set skip_checks to True (tested in user_commands).
* Fixed #23650 -- Prevented migrate from calling checks 3 ↵Claude Paroz2014-10-171-0/+21
| | | | | | times Thanks Ilya Baryshev for the report and Tim Graham for the review.
* Avoided requiring sqlparse for a test.Collin Anderson2014-10-091-3/+2
| | | | Refs #23426. Thanks Markus Holtermann for the suggestion.
* Skip another test if sqlparse is not availableCollin Anderson2014-10-091-0/+1
| | | | Refs #23426
* 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.