summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2014-11-15Merge pull request #3536 from Zweedeend/ticket_23837Carl Meyer
Fixes #23837: Replace list with deque in migration-planner for improved performance.
2014-11-15Fixed #23835: Changed circular dependency in DFS to be less infiniteAndrew Godwin
2014-11-15Fixes #23837: Replace list.pop(0) by deque.popleft() in dfs function in ↵Niels Kouwenhoven
migrations
2014-11-15Revert "Use topological sort for migration operation dependency resolution"Tim Graham
This commit broke the tests on Python 3. This reverts commit 13d613f80011852404198dfafd1f09c0c0ea42e6.
2014-11-15Fixed #14030 -- Allowed annotations to accept all expressionsJosh Smeaton
2014-11-15Use topological sort for migration operation dependency resolutionKlaas van Schelven
rather than an ad-hoc algorithm
2014-11-12Remove Field.get_validator_unique_lookup_type()Tim Graham
Usage of this method was removed pre 1.0 (c2ba59fc).
2014-11-12Removed extra enumerate() from Query.setup_joins()Anssi Kääriäinen
2014-11-12Fixed #22967 -- Made Model._do_update consistentJozef Knaperek
Made _do_update behave more strictly according to its docs, including a corner case when specific concurent updates are executed and select_on_save is set.
2014-11-12Improved Query.names_to_path docstringAnssi Kääriäinen
2014-11-11Simplified Query.build_lookup()Anssi Kääriäinen
2014-11-10Simplified MySQL storage engine detection using INFORMATION_SCHEMA.ENGINES tableThomas Chaumeny
Query the table introduced in MySQL 5.1; refs #23144.
2014-11-06Fixed #23770 -- Changed serialization strategy for floats with respect to ↵Markus Holtermann
NaN and Inf Thanks to w0rp for the report
2014-11-03Fixed typos using https://github.com/vlajos/misspell_fixerVeres Lajos
2014-11-03Fixed #23420 - broken warning for unbound naive datetime objectsAndy Chosak
Fixed issue with warning message displayed for unbound naive datetime objects when USE_TZ is True. Adds unit test that demonstrates the issue (discoverable when using a custom lookup in MySQL).
2014-10-31Fixed #23738 -- Allowed migrating from NULL to NOT NULL with the same ↵Markus Holtermann
default value Thanks to Andrey Antukh for the report.
2014-10-30Fixed #23733 -- Fixed squashing migrations that depend on multiple apps.twidi
2014-10-30Fixed #23556 -- Raised a more meaningful error message when migrations refer ↵Markus Holtermann
to an unavailable node
2014-10-29Fixed #23614 -- Changed the way the migration autodetector orders ↵Markus Holtermann
unique/index_together Thanks to Naddiseo for the report and Tim Graham for the review
2014-10-29Limited lines to 119 characters in django/{contrib,db}.Berker Peksag
Refs #23395.
2014-10-28Required MySQLdb >= 1.2.5 for fractional seconds supportClaude Paroz
On MySQLdb < 1.2.5, MySQLdb returns None when fetching datetime/time values with fractional seconds. See https://github.com/farcepest/MySQLdb1/issues/24
2014-10-28Fixed #19716 -- Added support for microseconds with MySQL 5.6.4 and upClaude Paroz
Thanks erik@cederstrand.dk for the report and Tim Graham for the review.
2014-10-28Stopped stripping microseconds with MySQL backendClaude Paroz
Refs #19716.
2014-10-28Fixed #23721 -- check_related_objects without calling __iter__Collin Anderson
Refs #14334
2014-10-28Fixed #23493 -- Added bilateral attribute to TransformThomas Chaumeny
2014-10-27Fixed typo in MySQL backend doctringClaude Paroz
Thanks CHI Cheng for the report.
2014-10-27Fixed #22879 -- Intercept errors coming from cursor.__next__()Mikhail Denisenko
2014-10-27Fixed #23446 -- Officially recommended mysqlclient as MySQL driverClaude Paroz
Thanks Corey Farwell for the report and Tim Graham for the review. Thanks also to Inada Naoki for creating and maintaining mysqlclient.
2014-10-24Fixed #23652 -- Restored database name after destroying test databaseClaude Paroz
Thanks Bjarkias for the report.
2014-10-24Fixed #23618 -- Allowed apps with no models to still have migrationsClaude Paroz
Basically a4737bf6ae reapplied.
2014-10-23Fixed #23702 -- Fixed adding an explicit id field on SQLite.Tim Graham
Thanks gavinwahl for the report.
2014-10-23Fixed #23630 -- Made AlterModelTable rename auto-created M2M tables.Tim Graham
Thanks Naddiseo for the report, Andrew Godwin for guidance, and Shai Berger for review.
2014-10-21Fixed #23396 -- Ensured ValueQuerySets are not checked by check_related_objects.Gabe Jackson
2014-10-20Fixed #23629 -- Allowed autodetector to detect changes in Meta.db_table.Tianyi Wang
Thanks Naddiseo for reporting.
2014-10-19Fixed #23684 -- Used correct package name for Pillow in Error hint.Nicholas Serra
2014-10-17Fixed #23649 -- Made Oracle test-db creation drop test-user earlier when neededShai Berger
Checked database destruction for ORA-29857, which happens when objects of some types are left over in an old test database (notably, such objects are created by the GIS backend). When this happens, we can resolve the issue by dropping the test-user (if we are allowed to). An alternative approach, to just switch the order of creation (so that, if the test user exists and can be dropped, it is always dropped before the tablespace) was considered; but since the user creation depends on the tablespace, this would necessitate separating the dropping of the user from its creation -- a change I am reluctant to make. Thanks Josh Smeaton and Tim Graham for reviews.
2014-10-16Fixed #23664 -- Provided a consistent definition for OrderedSet.__bool__Thomas Chaumeny
This also defines QuerySet.__bool__ for consistency though this should not have any consequence as bool(qs) used to fallback on QuerySet.__len__ in Py3.
2014-10-16Fixed #23659 -- Kept annotate() args orderingClaude Paroz
Thanks Loic Bistuer and Simon Charette for the review.
2014-10-16Fixed #23660 -- Moved sort_dependencies to core.Collin Anderson
2014-10-09Fixed #23627 -- Allowed register_lookup to work as a decorator.Marc Tamlyn
2014-10-09Fixed #23609 -- Fixed IntegrityError that prevented altering a NULL column ↵Markus Holtermann
into a NOT NULL one due to existing rows Thanks to Simon Charette, Loic Bistuer and Tim Graham for the review.
2014-10-08Fixed #23555 -- Avoided suppressing IndexError in QuerySet.first() and .last()Artem Rizhov
2014-10-08Fixed #23611 -- update_or_create failing from a related managerLoic Bistuer
Added update_or_create to RelatedManager, ManyRelatedManager and GenericRelatedObjectManager. Added missing get_or_create to GenericRelatedObjectManager.
2014-10-04Fixed #22064 -- Add check for related_nameAndré Ericson
Validates that related_name is a valid Python id or ends with a '+' and it's not a keyword. Without a check it passed silently leading to unpredictable problems. Thanks Konrad Świat for the initial work.
2014-10-02Fixed #23426 -- Allowed parameters in migrations.RunSQLMarkus Holtermann
Thanks tchaumeny and Loic for reviews.
2014-09-29Fixed #23365 -- Added support for timezone-aware datetimes to migrations.Rudy Mutter
2014-09-29Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny
Thanks Collin Anderson for the review.
2014-09-27Fixed git blunder, refs #22738Shai Berger
2014-09-27Fixed #22738 -- made finer distinctions for when Boolean is not detected on ↵Shai Berger
Oracle Thanks Claude Paroz for partial fix and Simon Charrette for review
2014-09-26Fixed #22738 -- Abstracted boolean field type introspectionClaude Paroz
Thanks maxi for the report, Shai Berger for his help with the patch and Tim Graham for the review.