summaryrefslogtreecommitdiff
path: root/django/db/backends/base
AgeCommit message (Collapse)Author
2019-03-17[2.2.x] Refs #30172 -- Prevented removing a model Meta's ↵Paveł Tyślacki
index/unique_together from removing Meta constraints/indexes. Backport of 5c17c273ae2d7274f1fa78218b3b74690efddb86 from master.
2019-03-17[2.2.x] Refs #30172 -- Prevented removing a field's check or unique ↵Paveł Tyślacki
constraint from removing Meta constraints. Backport of 4bb859e24694f6cb8974ed9d2225f18214338ea3 from master.
2019-02-14[2.2.x] Fixed #30171 -- Fixed DatabaseError in servers tests.Jon Dufresne
Made DatabaseWrapper thread sharing logic reentrant. Used a reference counting like scheme to allow nested uses. The error appeared after 8c775391b78b2a4a2b57c5e89ed4888f36aada4b. Backport of 76990cbbda5d93fda560c8a5ab019860f7efaab7 from master.
2019-02-13[2.2.x] Fixed #30184 -- Removed ellipsis characters from shell output strings.Dan Davis
Partially reverted 50b8493581fea3d7137dd8db33bac7008868d23a (refs #29654) to avoid a crash when the user shell doesn't support non-ASCII characters. Backport of 2bd8df243ac6fc35e58c9fe90b20c9e42519a5ac from master.
2019-01-12Fixed #30062 -- Added support for unique conditional constraints.Paveł Tyślacki
2019-01-12Used None as the empty value for condition in Index's SQL construction.Paveł Tyślacki
2019-01-10Renamed variables after generalization of constraints.Paveł Tyślacki
Follow up to 8eae094638acf802c8047b341d126d94bc9b45a3.
2019-01-09Refs #23748 -- Added AutoField introspection for SQLite.Nick Pope
2019-01-03Fixed typo in django/db/backends/base/features.py.Mariusz Felisiak
2019-01-01Fixed #30060 -- Moved SQL generation for indexes and constraints to ↵Paveł Tyślacki
SchemaEditor.
2018-12-26Refs #29547 -- Skipped an unsupported partial index test on older versions ↵Tim Graham
of SQLite. Follow up to e5b8626c0eb223cc3d643163882c5902c40ec972.
2018-12-24Fixed #30056 -- Added SQLite support for StdDev and Variance functions.Nick Pope
2018-12-22Renamed SQLite3 references to to SQLite.Simon Charette
The version suffix isn't part of the product name.
2018-12-06Fixed #29932 -- Fixed combining compound queries with sub-compound queries ↵Mariusz Felisiak
on SQLite and Oracle.
2018-11-26Refs #29722 -- Added introspection of materialized views for Oracle.Mariusz Felisiak
Thanks Tim Graham for the review.
2018-11-21Fixed #29949 -- Refactored db introspection identifier converters.Mariusz Felisiak
Removed DatabaseIntrospection.table_name_converter()/column_name_converter() and use instead DatabaseIntrospection.identifier_converter(). Removed DatabaseFeatures.uppercases_column_names. Thanks Tim Graham for the initial patch and review and Simon Charette for the review.
2018-11-20Changed BaseDatabaseSchemaEditor._effective_default() to staticmethod.Tim Graham
Follow up to 9cac10eee49eae3bbf7bd133ba0ae931b275324c.
2018-11-17Added BaseDatabaseSchemaEditor._effective_default() to allow testing without ↵Tim Graham
a connection.
2018-11-17Fixed #29505 -- Removed SchemaEditor's calling of callable defaults.Tim Graham
Thanks Eugene Pakhomov for the suggested fix.
2018-11-13Refs #29641 -- Refactored database schema constraint creation.Simon Charette
Added a test for constraint names in the database. Updated SQLite introspection to use sqlparse to allow reading the constraint name for table check and unique constraints. Co-authored-by: Ian Foote <python@ian.feete.org>
2018-11-09Fixed #29934 -- Added sqlparse as a require dependency.Tim Graham
2018-10-29Fixed #29547 -- Added support for partial indexes.Mads Jensen
Thanks to Ian Foote, Mariusz Felisiak, Simon Charettes, and Markus Holtermann for comments and feedback.
2018-10-25Refs #27025 -- Removed obsolete sqlite3 transaction management workaround ↵Tim Graham
for Python 3.6+. Obsolete per https://bugs.python.org/issue10740#msg274816.
2018-10-25Made DatabaseFeatures.uses_savepoints default to True.Tim Graham
2018-10-21Fixed #29870 -- Added DurationField introspection for Oracle and PostgreSQL.Mariusz Felisiak
Thanks Tim Graham for the review.
2018-10-02Added django.db.backends.utils.names_digest() to remove redundant code.Jon Dufresne
2018-10-01Fixed #29767 -- Made date-related casts work on SQLiteClaude Paroz
Thanks Rémy Hubscher for the report and Tim Graham and Simon Charette for the reviews.
2018-09-26Refs #29784 -- Switched to https:// links where available.Jon Dufresne
2018-09-25Fixed #29778 -- Fixed quoting of unique index names.Oleg
Regression in 3b429c96736b8328c40e5d77282b0d30de563c3c.
2018-09-25Refs #27795 -- Removed force_bytes() usage in db/backends/base/schema.py.Jon Dufresne
2018-09-18Fixed #23646 -- Added QuerySet.bulk_update() to efficiently update many models.Tom Forbes
2018-08-28Refs #29654 -- Replaced three dots with ellipsis in DB creation output strings.Jon Dufresne
2018-08-22Refs #29654 -- Replaced three dots with ellipsis character in output strings.Claude Paroz
2018-08-03Fixed #28668 -- Allowed QuerySet.bulk_create() to ignore insert conflicts.Tom
2018-07-30Refs #29548 -- Fixed failing window tests on MariaDB 10.3.Tom Forbes
2018-07-19Fixed #29040 -- Made test database creation messages use a consistent output ↵Claude Paroz
stream.
2018-07-11Fixed #29559 -- Fixed TransactionTestCase.reset_sequences for auto-created ↵Oliver Sauder
m2m through models.
2018-07-10Fixed #11964 -- Added support for database check constraints.Ian Foote
2018-06-29Fixed #28077 -- Added support for PostgreSQL opclasses in Index.Ian Foote
Thanks Vinay Karanam for the initial patch.
2018-06-17Fixed #29496 -- Fixed crash on Oracle when converting a non-unique field to ↵Mariusz Felisiak
primary key. Thanks Tim Graham for the review.
2018-04-19Fixed #28574 -- Added QuerySet.explain().Tom
2018-04-11Fixed #29193 -- Prevented unnecessary foreign key drops when altering a ↵Jeremy Bowman
unique field. Stopped dropping and recreating foreign key constraints on other fields in the same table as the one which is actually being altered in an AlterField operation. Regression in c3e0adcad8d8ba94b33cabd137056166ed36dae0.
2018-04-03Fixed #29251 -- Added bytes to str conversion in LPad/RPad database ↵Mariusz Felisiak
functions on MySQL. Thanks Tim Graham for the review.
2018-03-20Refs #29227 -- Made inspectdb generate BooleanField(null=True) rather than ↵Tim Graham
NullBooleanField.
2018-03-16Removed DatabaseFeatures.can_introspect_null.Tim Graham
The only known usage is in the unmaintained django-pymssql project.
2018-03-12Fixed typo in django/db/backends/base/schema.py.Tomer Chachamu
2018-03-12Removed unused variable in BaseDatabaseSchemaEditor.effective_default().Дилян Палаузов
2018-02-26Refs #28909 -- Simplifed code using unpacking generalizations.Mariusz Felisiak
2018-02-10Fixed #24747 -- Allowed transforms in QuerySet.order_by() and distinct(*fields).Matthew Wilkes
2018-02-07Renamed the allow_sliced_subqueries database feature to ↵Mariusz Felisiak
allow_sliced_subqueries_with_in. After 0899d583bdb140910698d00d17f5f1abc8774b07 this database feature is false only on MySQL which doesn't support sliced subqueries only with IN/ALL/ANY/SOME.