summaryrefslogtreecommitdiff
path: root/django/db/backends/mysql/introspection.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #18468 -- Added support for comments on columns and tables.kimsoungryoul2022-12-281-6/+19
| | | | | | | | Thanks Jared Chung, Tom Carrick, David Smith, Nick Pope, and Mariusz Felisiak for reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com> Co-authored-by: Nick Pope <nick@nickpope.me.uk>
* Made inspectdb used Cursor.description.display_size for CharFields' max_length.Mariusz Felisiak2022-12-081-1/+2
| | | internal_size is size for fixed-size types not for char types.
* Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak2022-02-071-1/+2
|
* Refs #33476 -- Reformatted code with Black.django-bot2022-02-071-93/+112
|
* Refs #33476 -- Refactored problematic code before reformatting by Black.Mariusz Felisiak2022-02-031-10/+25
| | | | | | | | | | | | | | | | | In these cases Black produces unexpected results, e.g. def make_random_password( self, length=10, allowed_chars='abcdefghjkmnpqrstuvwxyz' 'ABCDEFGHJKLMNPQRSTUVWXYZ' '23456789', ): or cursor.execute(""" SELECT ... """, [table name], )
* Removed DatabaseIntrospection.get_key_columns().Mariusz Felisiak2021-11-101-16/+7
| | | Thanks Simon Charette for the report.
* Fixed DatabaseIntrospection.get_relations() docstring.Tim Graham2021-11-101-1/+1
| | | The foreign keys are "in" the given table, not "to" it.
* Fixed #33017 -- Fixed storage engine introspection on MySQL.Matjaz Gregoric2021-08-201-4/+7
| | | | | | This also improves performance on MySQL instances with a large number of databases, since querying the information_schema table can be very slow
* Fixed #30916 -- Added support for functional unique constraints.Hannes Ljungberg2021-02-231-1/+1
| | | | Thanks Ian Foote and Mariusz Felisiak for reviews.
* Simplified introspection of constraints on MySQL.Hannes Ljungberg2021-02-121-20/+11
| | | | Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Fixed #32342 -- Added index order introspection on MySQL 8.0.1+.Mariusz Felisiak2021-01-111-1/+9
|
* Fixed #31777 -- Added support for database collations to Char/TextFields.Tom Carrick2020-09-211-2/+21
| | | | Thanks Simon Charette and Mariusz Felisiak for reviews.
* Fixed #12990, Refs #27694 -- Added JSONField model field.sage2020-05-081-1/+20
| | | | | | | | | | | Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael Michel for mentoring this Google Summer of Code 2019 project and everyone else who helped with the patch. Special thanks to Mads Jensen, Nick Pope, and Simon Charette for extensive reviews. Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
* Simplified imports from django.db and django.contrib.gis.db.Nick Pope2020-02-041-1/+1
|
* Fixed #30987 -- Added models.PositiveBigIntegerField.Caio Ariede2019-11-191-1/+3
|
* Fixed #30750 -- Added support for check constraints on MySQL 8.0.16+.Mariusz Felisiak2019-09-051-7/+21
|
* Refs #30591 -- Fixed introspection of check and unique column constraints on ↵Mariusz Felisiak2019-08-261-1/+9
| | | | | | | | MariaDB. Unnamed unique and check columns constraints have the same name as a column. Ensure uniqueness by using custom names. Thanks Adnan Umer for the report.
* Fixed #30661 -- Added models.SmallAutoField.Nick Pope2019-08-021-0/+2
|
* Refs #30593 -- Fixed introspection of check constraints columns on MariaDB.Hasan Ramezani2019-07-301-3/+8
|
* Refs #30593 -- Added _parse_constraint_columns() hook to introspection on ↵Hasan Ramezani2019-07-301-7/+10
| | | | MariaDB.
* Fixed #30593 -- Added support for check constraints on MariaDB 10.2+.Hasan Ramezani2019-07-191-0/+26
|
* Renamed import in MySQL introspection backend for consistency.Nick Pope2019-01-091-2/+2
|
* Fixed #29480 -- Made MySQL backend retrieve constraint columns in their ↵Thomas Grainger2018-06-291-0/+1
| | | | defined order.
* Refs #28909 -- Simplifed code using unpacking generalizations.Nick Pope2017-12-211-16/+11
|
* Refs #27098 -- Removed DatabaseIntrospection.get_indexes() per deprecation ↵Tim Graham2017-09-221-29/+0
| | | | timeline.
* Refs #27090 -- Added real database sequence introspection.Mariusz Felisiak2017-09-131-0/+7
| | | | Thanks Mariusz Felisiak for the Oracle part and Tim Graham for the review.
* Fixed #24365 -- Made inspectdb translate MySQL unsigned integer columns to ↵Mariusz Felisiak2017-03-081-5/+15
| | | | positive integer fields.
* Refs #27795 -- Removed unneeded force_text callsClaude Paroz2017-03-041-2/+1
| | | | Thanks Tim Graham for the review.
* Refs #27656 -- Updated django.db docstring verbs according to PEP 257.Anton Samarchyan2017-02-281-9/+9
|
* Fixed #27135 -- Made index introspection return Index.suffix.Tim Graham2017-02-151-1/+2
|
* Refs #23919 -- Replaced super(ClassName, self) with super().chillaranand2017-01-251-1/+1
|
* Refs #24245 -- Added introspection for database defaults on Oracle.Mariusz Felisiak2016-11-301-2/+2
|
* Fixed #27098 -- Deprecated DatabaseIntrospection.get_indexesClaude Paroz2016-09-121-0/+6
| | | | | Thanks Akshesh <aksheshdoshi@gmail.com> for help with the PostgreSQL query. Thanks Tim Graham for the review.
* Fixed #27097 -- Added index type introspection to built-in db backends.Akshesh2016-09-021-2/+2
|
* Fixed W503 flake8 warnings.Tim Graham2016-04-041-8/+12
|
* Fixed #24653 -- Fixed MySQL database introspection when using read_default_file.zshimanchik2016-02-261-4/+4
|
* Fixed #26125 -- Fixed E731 flake warnings.userimack2016-01-251-1/+4
|
* Fixed #14286 -- Added models.BigAutoField.Alexander Sosnovskiy2015-12-251-2/+6
|
* Removed unused foreign_key_re variables in MySQL/Oracle DB backendsAdam Chainz2015-02-181-2/+0
|
* Sorted imports with isort; refs #23860.Tim Graham2015-02-061-4/+4
|
* Fixed #24245 -- Added introspection for database defaults.Tim Graham2015-01-311-5/+6
| | | | Needed for tests for migrations handling of database defaults.
* Fixed #22603 -- Reorganized classes in django.db.backends.Tim Graham2015-01-141-2/+6
|
* Fixed #17785 -- Preferred column names in get_relations introspectionClaude Paroz2015-01-121-13/+3
| | | | | Thanks Thomas Güttler for the report and the initial patch, and Tim Graham for the review.
* Fixed #14180 -- Prevented unneeded index creation on MySQL-InnoDBClaude Paroz2014-12-271-2/+6
| | | | | Thanks zimnyx for the report and Simon Charette, Tim Graham for the reviews.
* Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne2014-12-081-2/+2
| | | | comprehension
* Added AutoField introspection for MySQLClaude Paroz2014-11-201-18/+31
| | | | Refs #23748.
* Fixed #23538 -- Added SchemaEditor for MySQL GIS.Tim Graham2014-09-251-0/+10
| | | | Thanks Claude Paroz for suggestions and review.
* Made get_table_list return a TableInfo named tupleClaude Paroz2014-09-231-4/+7
|
* Fixed #23357 -- Added small int introspection support to MySQL backend.Jon Dufresne2014-08-271-1/+1
| | | | | | | In the MySQL backend, updated the can_introspect_small_integer feature flag to True. In data_types_reverse, map FIELD_TYPE.SHORT to a SmallIntegerField. Added test to verify introspecting SmallIntegerFields and fixed existing tests influenced by this change.
* Remove some unnecesary uses of boolAlex Gaynor2013-10-171-1/+1
|