summaryrefslogtreecommitdiff
path: root/tests/migrations
AgeCommit message (Collapse)Author
2014-03-31Fixed #22359 -- Changing M2M field to blank=True failed on sqlite.Loic Bistuer
2014-03-25Fixed #22331 -- Made MigrationAutodetector ignore unmanaged models.Tim Graham
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.
2014-03-25Fixed #22331 -- Fixed migrations ProjectState to ignore unmanaged models.Loic Bistuer
2014-03-25Fixed #22300 -- Fixed crash in migrations when changing non-relational field ↵Stephen Burrows
to relational.
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
2014-01-08Fixed #21142: Dependency failures on unmigrated apps.Andrew Godwin
2013-12-30Populated Apps instances immediately by default.Aymeric Augustin
2013-12-29Used Apps.clear_cache() in tests that alter the app registry.Aymeric Augustin
2013-12-24Renamed AppCache to Apps.Aymeric Augustin
Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
2013-12-24Replaced ad-hoc caching of get_models with lru_cache.Aymeric Augustin
Invalidate properly the cache whenever all_models or app_configs change. This fixes some isolation issues in the test suite.
2013-12-23Imported override_settings from its new location.Aymeric Augustin
2013-12-23Dropped AppCache._empty, _with_app and _without_app.Aymeric Augustin
It's now easier to achieve the same effect with modify_settings or override_settings.
2013-12-22Moved apps back in the toplevel django namespace.Aymeric Augustin
Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.