summaryrefslogtreecommitdiff
path: root/tests/migrations
AgeCommit message (Collapse)Author
2014-04-21[1.7.x] Appeased flake8 2.1.0.Aymeric Augustin
Backport of 428c0bbe1bcd303560d7e96d7d2721ff3fdc0e3f from master
2014-04-20[1.7.x] Fixed flake8 errors.Tim Graham
Backport of 471fb04a30 from master
2014-04-18[1.7.x] Fixed #22397 -- Issues removing M2M field with explicit through modelAndrew Gorcester
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. Backport of 956bd64424 from master
2014-04-16[1.7.x] Fixed #22460 -- Explicity remove constraints when dropping a related ↵Motiejus Jakštys
field. Backport of 0e45669fa9 from master
2014-04-13[1.7.x] Fixed #22350 -- Consistently serialize bytes and text in migrations.Simon Charette
Thanks to @treyhunner and Loïc for their suggestions and review. Backport of 72d3889db4 from master
2014-04-03[1.7.x] Fixed #22363 -- Correctly serialize `django.utils.datetime_safe` ↵Simon Charette
objects. Thanks to linovia for the report. Backport of 074d3183d9 from master
2014-03-31[1.7.x] Fixed #22319 -- Fixed migration external dependencies when there are ↵Loic Bistuer
internal dependencies. Backport of 0fd51cf0bd from master
2014-03-31[1.7.x] Fixed #22359 -- Changing M2M field to blank=True failed on sqlite.Loic Bistuer
Backport of a449e7feec from master
2014-03-25[1.7.x] Fixed #22331 -- Made MigrationAutodetector ignore unmanaged models.Loic Bistuer
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. Backport of 42336c84a0daedfd8242333622eefe202e32398e from master
2014-03-25Revert "[1.7.x] Fixed #22331 -- Fixed migrations ProjectState to ignore ↵Tim Graham
unmanaged models." This reverts commit bf69375c4d2eaec4f00c646b9e7e84a9397d1a20.
2014-03-25[1.7.x] Fixed #22331 -- Fixed migrations ProjectState to ignore unmanaged ↵Loic Bistuer
models. Backport of 69d4b1c3ea from master
2014-03-25[1.7.x] Fixed #22300 -- Fixed crash in migrations when changing ↵Stephen Burrows
non-relational field to relational. Backport of 35ed792cf2 from master
2014-03-19Fixed #22275: unique_together broken if ForeignKey split into new file.Andrew Godwin
Thanks to bak1an for the patch.
2014-03-11Remove failing test while we fix the underlying bugAndrew Godwin
2014-03-11Fix AlterField migrations that are related to a RenameModel migrationChris Beaven
2014-03-11Fix autodetector creation of RenameModel migration to capitalize model namesChris Beaven
2014-03-10Fixed #22239 -- Add auto detection of renamed modelsChris Beaven
2014-03-08Fixed #21843: Remove explicit ID column setting in testAndrew Godwin
2014-03-08Merge pull request #2315 from bendavis78/issues/22073Andrew Godwin
Fixed #22073 - Ensure CreateTable operation handles backwards migration correctly when M2M fields are present
2014-03-06Fixed #22204: Bad circular-dep-breaking if more than one per runAndrew Godwin
2014-03-04Fixed three small flake8 violations.Alex Gaynor
2014-03-05Fixed #21893 -- ModelState didn't account for MTI parents inherited from ↵Loic Bistuer
abstract models.
2014-03-05Added tests for MTI in RunPython.Loic Bistuer
2014-03-01Fixed #22172 -- Allowed index_together to be a single list (rather than list ↵Anubhav Joshi
of lists).. Thanks EmilStenstrom for the suggestion.
2014-03-01Fixed #22168 -- Fixed migrations failing on sqlite when column names are SQL ↵Baptiste Mispelon
keywords Thanks to trac user fallen_flint for the report and initial patch.
2014-02-23Two whitespace changes to appease flake8Alex Gaynor
2014-02-23Fixed #22095 -- Enabled backward migrations for RunPython operationsAndrew Gorcester
Added reversible property to RunPython so that migrations will not refuse to reverse migrations including RunPython operations, so long as reverse_code is set in the RunPython constructor. Included tests to check the reversible property on RunPython and the similar RunSQL.
2014-02-17Fixed #22073 - Ensure CreateTable operation handles backwards migration ↵Ben Davis
correctly when M2M fields are present
2014-02-17Merge pull request #2270 from bmispelon/ticket-22030Andrew Godwin
Fixed #22030 -- Don't assume that all fields have a swappable_setting at...
2014-02-14Fixed #22035 -- reordered migration operationsAnton Baklanov
Now AddField actions appear in operations list before AlterUniqueTogether actions. Thanks to SmileyChris for the report.
2014-02-13Fixed #22030 -- Don't assume that all fields have a swappable_setting attribute.Baptiste Mispelon
2014-02-13Removed test for migration check forgotten in ↵Baptiste Mispelon
7e941ba67ceab8a74ba50509d13ed4298f8305cd.
2014-02-12Fix my slightly hasty autodetector changesAndrew Godwin
2014-02-09Fixed #21954: Raise nice error when serializing datetimes with timezonesAndrew Godwin
2014-02-09Removed unused imports + other flake8 fixes.Tim Graham
2014-02-09Fixed #21892: RunPython no longer accepts stringsAndrew Godwin
2014-02-08Adding tests for check_migrations.mlavin
2014-02-02Fix regress added to migrations.test_operations.test_alter_field_pk_fkMichael Manfre
2014-02-02Ensure cursors are closed when no longer needed.Michael Manfre
This commit touchs various parts of the code base and test framework. Any found usage of opening a cursor for the sake of initializing a connection has been replaced with 'ensure_connection()'.
2014-01-22Added some missing whitespace around arithmetic operatorsAlex Gaynor
2014-01-22Fixed #21852 -- Make migration writer serialize iteratorsMarkus Holtermann
2014-01-19Fixed a small collection of flake8 violations that had snuck inAlex Gaynor
2014-01-20Fixed #16905 -- Added extensible checks (nee validation) frameworkRussell Keith-Magee
This is the result of Christopher Medrela's 2013 Summer of Code project. Thanks also to Preston Holmes, Tim Graham, Anssi Kääriäinen, Florian Apolloner, and Alex Gaynor for review notes along the way. Also: Fixes #8579, fixes #3055, fixes #19844.
2014-01-19Remove other unicode literalAndrew Godwin
2014-01-19Remove unicode prefix that snuck inAndrew Godwin
2014-01-19Fixed #21664: Multi-table inheritance was duplicating _ptr fieldsAndrew Godwin
2014-01-19Fixed #21783: (again) Found second source of bug, also squashed it.Andrew Godwin
2014-01-20Fixed #21323 -- Improved readability of serialized Operation.Loic Bistuer
2014-01-19Implement swappable model support for migrationsAndrew Godwin
2014-01-08Make test stronger to hopefully fix odd Jenkins failureAndrew Godwin