summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2015-01-08Simplified verbose_name_raw propertyClaude Paroz
2015-01-07Fixed #24093 -- Prevented MigrationWriter to write operation kwargs that are ↵Markus Holtermann
not explicitly deconstructed
2015-01-07Fixed null handling in Value expressionJosh Smeaton
2015-01-07Refs #23822 -- Made MigrationOptimizer aware of model managersMarkus Holtermann
2015-01-07Refs #22608 -- Optimized migration optimizerMarkus Holtermann
Moved list constants instantiation into optimizer's __init__.
2015-01-07Refs #22608 -- Optimized migration optimizer and migrate by caching calls to ↵Ulrich Petri
str.lower()
2015-01-07Refs #2443 -- Allowed creation of objects with NULL DurationFieldsMichał Modzelewski
2015-01-07Fixed #24078 -- Removed empty strings from GenericIPAddressFieldJosh Smeaton
2015-01-06Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
2015-01-05Fixed #23861 -- Added an API to deprecate model fields.Tim Graham
Thanks Markus Holterman and Berker Peksag for review.
2015-01-05Renamed flag for detecting managers built from QuerySets with as_manager().Markus Holtermann
2015-01-02Fixed #9104 -- Moved FieldDoesNotExist to core.exceptionsDaniel Pyrathon
2015-01-02Fixed #23745 -- Reused states as much as possible in migrationsClaude Paroz
Thanks Tim Graham and Markus Holtermann for the reviews.
2015-01-02Passed around the state between migrationsClaude Paroz
Refs #23745.
2015-01-02Added ignore_swappable to StateAppsMarkus Holtermann
Refs #23745.
2015-01-02Replaced migration state render() by apps cached propertyClaude Paroz
Refs #23745.
2015-01-01Fixed #23891 -- Moved deprecation of IPAddressField to system check framework.Tim Graham
Thanks Markus Holtermann for review.
2014-12-31Fixed #23758 -- Allowed more than 5 levels of subqueriesPiotr Pawlaczek
Refactored bump_prefix() to avoid infinite loop and allow more than than 5 subquires by extending the alphabet to use multi-letters.
2014-12-31Copied BaseDatabaseCreation._digest() to SchemaEditor to remove dependency.Tim Graham
refs #22340.
2014-12-31Moved DatabaseCreation.data_types properties to DatabaseWrapper.Tim Graham
refs #22340.
2014-12-31Renamed variables to avoid name collision with import of django.db.models.Russell Keith-Magee
2014-12-30Removed db.backends methods which only call super().Tim Graham
2014-12-30Fixed #12118 -- Added shared cache support to SQLite in-memory testing.Andriy Sokolovskiy
2014-12-30Fixed #23581 -- Prevented extraneous DROP DEFAULT statements.Tim Graham
Thanks john_scott for the report and Markus Holtermann for review.
2014-12-29Fixed #23938 -- Added migration support for m2m to concrete fields and vice ↵Markus Holtermann
versa Thanks to Michael D. Hoyle for the report and Tim Graham for the review.
2014-12-29Fixed #22279 -- Prevented dummy backend going through DatabaseErrorWrapperClaude Paroz
Thanks Daniel Hahler for the report and Tim Graham for the review.
2014-12-29Fixed #21255 -- Closed connections after management command ranClaude Paroz
Thanks kabakov.as@gmail.com for the report, and Aymeric Augustin, Simon Charette for the reviews.
2014-12-29Fixed #23753 -- Oracle failure with CoalesceJosh Smeaton
2014-12-27Fixed #14180 -- Prevented unneeded index creation on MySQL-InnoDBClaude Paroz
Thanks zimnyx for the report and Simon Charette, Tim Graham for the reviews.
2014-12-27Fixed #23753 -- Added a suite of SQL FunctionsJosh Smeaton
Added functions and tests Added docs and more tests Added TextField converter to mysql backend Aliased Value as V in example docs and tests Removed unicode_compatible in example Fixed console emulation in examples
2014-12-25Fixed #23866 -- Harmonized refs to Django documentation from codeClaude Paroz
2014-12-24Fixed #10414 -- Made select_related() fail on invalid field names.Niclas Olofsson
2014-12-23Fixed #24037 -- Prevented data loss possibility when changing Meta.managed.Tim Graham
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.
2014-12-23Removed models.Field.bind() -- unused/undocumented since at least 1.0.Tim Graham
2014-12-23Replaced DatabaseCreation sql methods by schema editor equivalentsClaude Paroz
Also used schema editor in migrate to sync unmigrated apps (sync_apps). Refs #22340. Thanks Tim Graham for the review.
2014-12-23Fixed #21414 -- Removed RelatedObject and deprecated Field.related.Anssi Kääriäinen
2014-12-23Refs #2443 -- fixed format_dtdelta on SQLiteAnssi Kääriäinen
A test failed on Python 2 32-bit.
2014-12-23Refs #2443 -- Move the durationfield converter logic.Marc Tamlyn
This reduces how frequently this logic is run significantly. Thanks to Anssi for the suggestion.
2014-12-23Fixed #24033 -- Use interval type on Oracle.Marc Tamlyn
Use INTERVAL DAY(9) TO SECOND(6) for Durationfield on Oracle rather than storing as a NUMBER(19) of microseconds. There are issues with cx_Oracle which require some extra data manipulation in the database backend when constructing queries, but it handles the conversion back to timedelta objects cleanly. Thanks to Shai for the review.
2014-12-22Fixed #23998 -- Added datetime.time support to migrations questioner.Oscar Ramirez
2014-12-21Fixed #24017 -- Added python_2_unicode_compatible in db/migrationsJosh Schneier
2014-12-20Refs #2443 -- Fix Oracle tests for DurationField.Marc Tamlyn
It helps if there are the correct number of microseconds in a second.
2014-12-20Fixed #2443 -- Added DurationField.Marc Tamlyn
A field for storing periods of time - modeled in Python by timedelta. It is stored in the native interval data type on PostgreSQL and as a bigint of microseconds on other backends. Also includes significant changes to the internals of time related maths in expressions, including the removal of DateModifierNode. Thanks to Tim and Josh in particular for reviews.
2014-12-18Refs #24020 -- return expressions from get_group_by_cols()Anssi Kääriäinen
2014-12-17Fixed #24007 -- Ensure apps registry's ready before unpickling modelsClaude Paroz
This prevents AppRegistryNotReady errors when unpickling Django models from an external script.
2014-12-16Fixed #23983 -- Fixed a crash in migrations when adding ↵Andriy Sokolovskiy
order_with_respect_to to non-empty table.
2014-12-15Fixed #23405 -- Fixed makemigrations prompt when adding Text/CharField.Andriy Sokolovskiy
A default is no longer required.
2014-12-15Fixed #23987 -- Made SQLite SchemaEditor always use effective_default().Andriy Sokolovskiy
2014-12-15Fixed #23822 -- Added support for serializing model managers in migrationMarkus Holtermann
Thanks to Shai Berger, Loïc Bistuer, Simon Charette, Andrew Godwin, Tim Graham, Carl Meyer, and others for their review and input.
2014-12-15Changed internal storing of abstract and concrete managers to be in a single ↵Markus Holtermann
list. This commit prepares the internal manager layout to be serialized by migrations; refs #23822.