summaryrefslogtreecommitdiff
path: root/tests/inspectdb
AgeCommit message (Collapse)Author
2022-12-28Fixed #14094 -- Added support for unlimited CharField on PostgreSQL.Adrian Torres
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2022-12-28Fixed #18468 -- Added support for comments on columns and tables.kimsoungryoul
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>
2022-12-12Refs #33308 -- Added DatabaseOperations.compose_sql() on PostgreSQL.Florian Apolloner
2022-07-06Fixed #33823 -- Made inspectdb generate unique related_name when reverse ↵Vladimir Kochetkov
accessor clashes.
2022-06-01Refs #32234 -- Removed hardcoded IntegerField in inspectdb test.Tim Graham
2022-06-01Fixed #32234 -- Made inspectdb inform about composite primary keys.Anv3sh
2022-04-16Fixed #33643 -- Fixed inspectdb crash on functional unique constraints on ↵Scott
Oracle.
2022-02-07Refs #33476 -- Refactored code to strictly match 88 characters line length.Mariusz Felisiak
2022-02-07Refs #33476 -- Reformatted code with Black.django-bot
2021-12-09Fixed inspectdb.tests.InspectDBTestCase.test_custom_fields() on SQLite 3.37+.Mariusz Felisiak
Use FlexibleFieldLookupDict which is case-insensitive mapping because SQLite 3.37+ returns some data type names upper-cased e.g. TEXT.
2021-11-02Fixed #33187 -- Made inspectdb handle ForeignKey.to_field attribute.jordan.bae
2021-01-19Fixed #32357 -- Dropped support for PostgreSQL 9.6 and PostGIS 2.3.Mariusz Felisiak
2020-10-16Optimized inspectdb tests by specifying database tables/views.Nick Pope
2020-10-06Fixed #32073 -- Skipped collation tests on PostgreSQL < 10.Mariusz Felisiak
PostgreSQL < 10 doesn't support ICU collations. Thanks Hannes Ljungberg for the report.
2020-09-21Fixed #31777 -- Added support for database collations to Char/TextFields.Tom Carrick
Thanks Simon Charette and Mariusz Felisiak for reviews.
2020-06-23Fixed #31736 -- Fixed InspectDBTransactionalTests.test_foreign_data_wrapper ↵Ahmad A. Hussein
crash on Windows.
2020-06-04Refs #31630 -- Added CharField and IntegerField to ↵Tim Graham
DatabaseFeatures.introspected_field_types. CockroachDB introspects CharField as TextField and IntegerField as BigIntegerField.
2020-06-04Refs #31630 -- Removed DatabaseFeatures.can_introspect_autofield.Tim Graham
2020-06-04Fixed #31630 -- Replaced introspection features with ↵Hasan Ramezani
DatabaseFeatures.introspected_field_types.
2020-05-11Refs #30116 -- Simplified regex match group access with Match.__getitem__().Jon Dufresne
The method has been available since Python 3.6. The shorter syntax is also marginally faster.
2020-05-08Fixed #12990, Refs #27694 -- Added JSONField model field.sage
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>
2019-11-19Fixed #30987 -- Added models.PositiveBigIntegerField.Caio Ariede
2019-05-24Used re.Pattern.findall() instead of re.findall() in inspectdb.tests.Jon Dufresne
2019-04-25Fixed #30388 -- Made inspectdb generate OneToOneFields rather than ↵Ville Skyttä
ForeignKey(unique/primary_key=True).
2018-12-24Refs #29004 -- Prevented inspectdb tests from flushing all tables data.Simon Charette
This is a costly operation on most database backends.
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-19Refs #29722 -- Added introspection of partitions for PostgreSQL.Nick Pope
2018-10-09Capitalized "Python" in docs and comments.Jon Dufresne
2018-10-02Refs #29722 -- Added introspection of materialized views for PostgreSQL.Nick Pope
2018-10-02Fixed #29719 -- Added introspection of foreign tables for PostgreSQL.Nick Pope
Thanks infinite-l00p for the initial patch.
2018-03-21Fixed #27533 -- Fixed inspectdb crash if a unique constraint uses an ↵Michael Sinov
unsupported type.
2018-03-21Fixed too many parentheses in inspectdb Meta.unique_together output.Tim Graham
Regression in c76d87427d70f6c91ab855ed688828aa982720d2.
2018-03-20Refs #29227 -- Made inspectdb generate BooleanField(null=True) rather than ↵Tim Graham
NullBooleanField.
2018-03-20Fixed #29227 -- Allowed BooleanField to be null=True.Tim Graham
Thanks Lynn Cyrin for contributing to the patch, and Nick Pope for review.
2018-03-16Removed DatabaseFeatures.can_introspect_null.Tim Graham
The only known usage is in the unmaintained django-pymssql project.
2018-03-12Refs #29004 -- Optimized InspectDBTransactionalTests.test_include_views() by ↵Mariusz Felisiak
limiting introspected tables.
2018-03-12Added functions for inspectdb table filtering in tests.Tim Graham
2018-01-27Fixed #29004 -- Added inspectdb --include-views option.bquinn
2018-01-03Fixed #28984 -- Made assorted code simplifications.Tim Graham
2017-01-24Removed unneeded force_text calls in the test suiteClaude Paroz
2017-01-20Refs #23919 -- Removed django.test.mock Python 2 compatibility shim.Tim Graham
2017-01-19Fixed spelling mistakes in code and comments.james mike dupont
2017-01-18Refs #23919 -- Removed most of remaining six usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed six.PY2/PY3 usageClaude Paroz
Thanks Tim Graham for the review.
2017-01-18Refs #23919 -- Removed encoding preambles and future importsClaude Paroz
2017-01-17Refs #26154 -- Removed deprecated CommaSeparatedIntegerField.Tim Graham
2017-01-07Fixed #27700 -- Optimized inspectdb tests by specifying database tables.Mariusz Felisiak
2016-12-19Refs #19884 -- Removed DatabaseFeatures.can_introspect_max_length.Mariusz Felisiak
Unused (always True) after 3e43d24ad36d45cace57e6a7efd34638577ae744.
2016-12-19Refs #19884 -- Added CharField max_length introspection on Oracle.Mariusz Felisiak