Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/migrations
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixed tuple serialization test.Baptiste Mispelon2014-05-231-1/+1
| | | | Thanks to rockallite for the report.
* Fixed #22602 -- Improved code coverage of makemigrations ↵Huu Nguyen2014-05-239-0/+326
| | | | command tests.
* Fixed #22667 -- Replaced leader/follower terminology ↵Flavio Curella2014-05-221-1/+1
| | | | with primary/replica
* Fixed #22679 -- Fixed empty tuple serialization in ↵Moayad Mardini2014-05-221-0/+12
| | | | | | MigrationWriter. Thanks rockallite.wulf for the report.
* Made nested deconstruction support both forms of ↵Marc Tamlyn2014-05-221-0/+12
| | | | | | | | deconstruct() Nested deconstruction should (silently) handle Field.deconstruct() as well as other arbitrary deconstructable objects. This allows having a field in the deconstruction of another field.
* Skipped a migrations test that's not supported on MySQL ↵Tim Graham2014-05-211-0/+2
| | | | + Python 3.
* Merge pull request #2692 from fcurella/patch-5Alex Gaynor2014-05-201-1/+1
|\ | | | | #22667 replaced occurrences of master/slave terminology with leader/follower
| * replaced occurrences of master/slave terminology with ↵Flavio Curella2014-05-201-1/+1
| | | | | | | | leader/follower
* | Fixed #22432: SQLite M2M repointing now works. Thanks to ↵Andrew Godwin2014-05-201-1/+44
| | | | | | | | xelnor.
* | Merge pull request #2634 from loic/ticket22424Andrew Godwin2014-05-201-0/+132
|\ \ | | | | | | Fixed #22424 -- MySQL doesn't accept migrations' one-off default values ...
| * | Failing testcases for #22649.Loic Bistuer2014-05-181-0/+21
| | |
| * | Fixed #22424 -- Fixed handling of default values for ↵Loic Bistuer2014-05-181-0/+111
| | | | | | | | | | | | | | | | | | TextField/BinaryField on MySQL. Thanks syphar for the review and suggestions.
* | | Fixed #22661 -- Move makemigrations tests to the proper ↵Huu Nguyen2014-05-201-22/+22
|/ / | | | | | | class
* | Harmonized some PEP 0263 coding preamblesClaude Paroz2014-05-1515-15/+15
| |
* | Tests for #22325Andrew Godwin2014-05-093-0/+53
| |
* | Appeased flake8.Aymeric Augustin2014-05-081-1/+2
| |
* | Fixed #22496: Data migrations get transactions again!Andrew Godwin2014-05-071-0/+37
| |
* | Fixed #22435 -- Prevented adding a ManyToManyField from ↵Tim Graham2014-05-031-0/+26
| | | | | | | | | | | | prompting for a default. Thanks andrewsg for the report.
* | Fix migration autodector to work correctly with custom ↵Chris Beaven2014-05-021-0/+22
| | | | | | | | deconstructed values
* | flake8 fixes.Tim Graham2014-05-011-0/+1
| |
* | Cleanup failing test w/contenttypes and remove useless ↵Andrew Godwin2014-05-011-1/+4
| | | | | | | | graph load
* | Fixed #22485: Include all unmigrated apps in project ↵Andrew Godwin2014-04-302-3/+30
|/ | | | state by default.
* Fixed #22474 -- Made migration recorder aware of ↵Claude Paroz2014-04-301-1/+7
| | | | | | multiple databases Thanks Tim Graham for the review.
* Fixed #22447 -- Make sure custom model bases can be ↵Simon Charette2014-04-292-0/+17
| | | | | | migrated. Thanks to cdestigter for the report.
* Fixed #3214 -- Stopped parsing SQL with regex.Aymeric Augustin2014-04-261-1/+14
| | | | | | | | | | | | | | | | | | | | Avoided introducing a new regex-based SQL splitter in the migrations framework, before we're bound by backwards compatibility. Adapted this change to the legacy "initial SQL data" feature, even though it's already deprecated, in order to facilitate the transition to migrations. sqlparse becomes mandatory for RunSQL on some databases (all but PostgreSQL). There's no API to provide a single statement and tell Django not to attempt splitting. Since we have a more robust splitting implementation, that seems like a good tradeoff. It's easier to add a new keyword argument later if necessary than to remove one. Many people contributed to both tickets, thank you all, and especially Claude for the review. Refs #22401.
* Fixed table cleanup in GIS migration testsClaude Paroz2014-04-211-3/+3
|
* Appeased flake8 2.1.0.Aymeric Augustin2014-04-211-1/+1
|
* Fixed flake8 errors.Tim Graham2014-04-202-2/+5
|
* Fixed #22397 -- Issues removing M2M field with explicit ↵Andrew Gorcester2014-04-183-12/+140
| | | | | | | | | | | | | | through model Changed the migration autodetector to remove models last so that FK and M2M fields will not be left as dangling references. Added a check in the migration state renderer to error out in the presence of dangling references instead of leaving them as strings. Fixed a bug in the sqlite backend to handle the deletion of M2M fields with "through" models properly (i.e., do nothing successfully). Thanks to melinath for report, loic for tests and andrewgodwin and charettes for assistance with architecture.
* Revert "Fixed #22397 -- Issues removing M2M field with ↵Simon Charette2014-04-183-129/+12
| | | | | | | | explicit through model." This reverts commit 00e3b9a2a992ee0b7288eeeb03e7cbd52ebc6dce. It's causing a regression when tested with the proxy_model_inheritance tests.
* Fixed #22397 -- Issues removing M2M field with explicit ↵Andrew Gorcester2014-04-173-12/+129
| | | | | | | | | | | | | | through model. Changed the migration autodetector to remove models last so that FK and M2M fields will not be left as dangling references. Added a check in the migration state renderer to error out in the presence of dangling references instead of leaving them as strings. Fixed a bug in the sqlite backend to handle the deletion of M2M fields with "through" models properly (i.e., do nothing successfully). Thanks to melinath for report, loic for tests and andrewgodwin and charettes for assistance with architecture.
* Fixed #22460 -- Explicity remove constraints when ↵Motiejus Jakštys2014-04-161-0/+16
| | | | dropping a related field.
* Fixed #22350 -- Consistently serialize bytes and text in ↵Simon Charette2014-04-1411-4/+49
| | | | | | migrations. Thanks to @treyhunner and Loïc for their suggestions and review.
* Fixed #22363 -- Correctly serialize ↵Simon Charette2014-04-031-1/+9
| | | | | | `django.utils.datetime_safe` objects. Thanks to linovia for the report.
* Fixed #22319 -- Fixed migration external dependencies ↵Loic Bistuer2014-03-311-1/+1
| | | | when there are internal dependencies.
* Fixed #22359 -- Changing M2M field to blank=True failed ↵Loic Bistuer2014-03-311-8/+30
| | | | on sqlite.
* Fixed #22331 -- Made MigrationAutodetector ignore ↵Tim Graham2014-03-252-11/+27
| | | | | | | | unmanaged models. This commit reverts 69d4b1c and tackle the issue from a different angle. Models remain present in the project state, but are now ignored by the autodetector.
* Fixed #22331 -- Fixed migrations ProjectState to ignore ↵Loic Bistuer2014-03-251-0/+11
| | | | unmanaged models.
* Fixed #22300 -- Fixed crash in migrations when changing ↵Stephen Burrows2014-03-251-0/+23
| | | | non-relational field to relational.
* Fixed #22275: unique_together broken if ForeignKey split ↵Andrew Godwin2014-03-201-0/+38
| | | | | | into new file. Thanks to bak1an for the patch.
* Remove failing test while we fix the underlying bugAndrew Godwin2014-03-111-40/+42
|
* Fix AlterField migrations that are related to a ↵Chris Beaven2014-03-111-0/+41
| | | | RenameModel migration
* Fix autodetector creation of RenameModel migration to ↵Chris Beaven2014-03-111-4/+4
| | | | capitalize model names
* Fixed #22239 -- Add auto detection of renamed modelsChris Beaven2014-03-101-0/+70
|
* Fixed #21843: Remove explicit ID column setting in testAndrew Godwin2014-03-091-7/+7
|
* Merge pull request #2315 from bendavis78/issues/22073Andrew Godwin2014-03-091-0/+40
|\ | | | | Fixed #22073 - Ensure CreateTable operation handles backwards migration correctly when M2M fields are present
| * Fixed #22073 - Ensure CreateTable operation handles ↵Ben Davis2014-02-171-0/+40
| | | | | | | | backwards migration correctly when M2M fields are present
* | Fixed #22204: Bad circular-dep-breaking if more than one ↵Andrew Godwin2014-03-061-2/+3
| | | | | | | | per run
* | Fixed three small flake8 violations.Alex Gaynor2014-03-051-0/+1
| |
* | Fixed #21893 -- ModelState didn't account for MTI ↵Loic Bistuer2014-03-041-0/+15
| | | | | | | | parents inherited from abstract models.