summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2018-09-25Normalized spelling of "lowercase" and "lowercased".Jon Dufresne
2018-09-25Refs #27795 -- Removed force_bytes() usage in db/backends/base/schema.py.Jon Dufresne
2018-09-25Refs #27795 -- Removed force_bytes() usage in db/backends/utils.py.Jon Dufresne
2018-09-18Fixed #23646 -- Added QuerySet.bulk_update() to efficiently update many models.Tom Forbes
2018-09-17Fixed #27899 -- Added support for phrase/raw searching in SearchQuery.Claude Paroz
Thanks Tim Graham, Nick Pope, and Claude Paroz for contribution and review.
2018-09-16Fixed #29759 -- Fixed crash on Oracle when fetching a returned insert id ↵Mariusz Felisiak
with cx_Oracle 7.
2018-09-14Simplified introspection methods for PostgreSQL.Nick Pope
2018-09-14Fixed #29755 -- Made migrations detect changes to Meta.default_related_name.Simon Charette
2018-09-13Refs #14357 -- Deprecated Meta.ordering affecting GROUP BY queries.Ramiro Morales
Thanks Ramiro Morales for contributing to the patch.
2018-09-11Fixed #29749 -- Made the migrations loader ignore files starting with a ↵Tim Graham
tilde or underscore. Regression in 29150d5da880ac1db15e47052330790cf1b802d2.
2018-09-10Fixed #29500 -- Fixed SQLite function crashes on null values.Srinivas Reddy Thatiparthy
Co-authored-by: Srinivas Reddy Thatiparthy <thatiparthysreenivas@gmail.com> Co-authored-by: Nick Pope <nick.pope@flightdataservices.com>
2018-09-10Combined two identical SQLite functions.Nick Pope
2018-09-10Made some date parsing in SQLite functions more DRY.Nick Pope
2018-09-10Fixed #29243 -- Improved efficiency of migration graph algorithm.Krzysztof Gogolewski
2018-09-08Fixed #29727 -- Made nonexistent joins in F() raise FieldError.Alexander Holmbäck
Regression in 2162f0983de0dfe2178531638ce7ea56f54dd4e7.
2018-08-31Refs #27795 -- Removed force_text() in Model._get_FIELD_display().Jon Dufresne
2018-08-29Fixed #29694 -- Fixed column mismatch crash with QuerySet.values() or ↵Mariusz Felisiak
values_list() after combining querysets with extra() with union(), difference(), or intersection(). Regression in 0b66c3b442875627fa6daef4ac1e90900d74290b.
2018-08-28Refs #29654 -- Replaced three dots with ellipsis in DB creation output strings.Jon Dufresne
2018-08-28Refs #27795 -- Removed force_bytes()/smart_text() from model fields.Jon Dufresne
2018-08-23Fixed #29048 -- Added **extra_context to database function as_vendor() methods.priyanshsaxena
2018-08-22Fixed #26352 -- Made system check allow ManyToManyField to target the same ↵Simon Willison
model if through_fields differs.
2018-08-22Fixed #29698 -- Fixed Field._check_choices() crash on invalid choices.Franck Michea
2018-08-22Refs #29654 -- Replaced three dots with ellipsis character in output strings.Claude Paroz
2018-08-20Removed unused function argument from Window.as_sql().Mariusz Felisiak
Unused since its introduction in d549b8805053d4b064bf492ba90e90db5d7e2a6b.
2018-08-20Fixed #29625 -- Made Model.refresh_from_db() clear prefetch related caches.Ming Qin
2018-08-18Fixed #28649 -- Added ExtractIsoYear database function and iso_year lookup.Sigurd Ljødal
2018-08-17Refs #29015 -- Added database name to PostgreSQL database name too long ↵Jon Dufresne
exception.
2018-08-13Removed unused enumerate in django/db/models/sql/datastructures.py.Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)
2018-08-10Fixed #29653 -- Fixed missing related_query_name reverse accessor if ↵Ramiro Morales
GenericRelation is declared on an abstract base model. Regression in 4ab027b94409e6415b774797bf9d3593da9d9ea8. Thanks Lauri Kainulainen for the report.
2018-08-07Fixed #29648 -- Fixed crash when using subqueries inside datetime truncation ↵Raphael Michel
functions.
2018-08-03Fixed #28668 -- Allowed QuerySet.bulk_create() to ignore insert conflicts.Tom
2018-08-03Fixed #29613 -- Fixed --keepdb on PostgreSQL if the database exists and the ↵Mariusz Felisiak
user can't create databases. Regression in e776dd2db677d58dcb50aea20d3bb191537df25b. Thanks Tim Graham for the review.
2018-08-02Fixed #29499 -- Fixed race condition in QuerySet.update_or_create().Michael Sanders
A race condition happened when the object didn't already exist and another process/thread created the object before update_or_create() did and then attempted to update the object, also before update_or_create() saved the object. The update by the other process/thread could be lost.
2018-08-02Fixed #29614 -- Added BTreeIndex to django.contrib.postres.Nick Pope
2018-08-02Fixed #28990 -- Added autosummarize parameter to BrinIndex.Nick Pope
2018-08-01Fixed typos in comments and docs.luz.paz
2018-08-01Simplified comment in BooleanField.to_python().Tim Graham
2018-07-30Refs #29548 -- Fixed failing window tests on MariaDB 10.3.Tom Forbes
2018-07-27Fixed #29595 -- Allowed using timedelta in migrations questioner.Tim Graham
Refs #29600 -- Removed usage of django.utils.datetime_safe in migrations.
2018-07-25Fixed #29563 -- Added result streaming for QuerySet.iterator() on SQLite.Andrew Brown
2018-07-25Refs #29563 -- Fixed SQLCompiler.execute_sql() to respect ↵Andrew Brown
DatabaseFeatures.can_use_chunked_reads.
2018-07-25Fixed #29569 -- Fixed Cast() with AutoField and BigAutoField.Mariusz Felisiak
2018-07-20Fixed #29568 -- Prevented unnecessary UPDATE queries creating child models.François Dupayrat
2018-07-19Fixed #29040 -- Made test database creation messages use a consistent output ↵Claude Paroz
stream.
2018-07-19Refs #28862 -- Removed the FieldRelatedOptionOperation.reduce() optimization.Simon Charette
It isn't required anymore since AlterTogetherOperations can be reduced into CreateModels which can reduce DeleteField operations.
2018-07-19Fixed #26906 -- Reduced alter together operations code duplication.Simon Charette
Thanks Akshesh Doshi for the initial patch.
2018-07-19Fixed #27731 -- Implemented CreateModel/AlterFooOperation reduction.Simon Charette
This should alleviate the side effects of disabling the AlterFooOperation reduction with RemoveField to fix refs #28862 during migration squashing because CreateModel can perform a reduction with RemoveField. Thanks Nick Pope for the review.
2018-07-19Fixed #28862 -- Disabled optimization of AlterFooTogether and RemoveField.Simon Charette
AlterFooTogether operations cannot be swapped with RemoveField operations on the same model as they could be removing the the same field as well. Since AlterFooTogether operations don't track what their previous value was, it's impossible to determine whether or not the optimization is safe so the only way to proceed is to disable the optimization. Thanks Ramiro Morales for the in-depth analysis of the issue. Refs #24828
2018-07-18Removed duplicate words in various comments.Mariusz Felisiak
2018-07-16Fixed #29413 -- Prevented evaluation of ↵Viktor Danyliuk
QuerySet.get_or_create()/update_or_create() defaults unless needed. Removed the logic added in 81e05a418dc6f347d9627373288e773c477a9fe0 which was obsolete since dbffffa7dc95fc62cbecfd00284bde62ee796f48.