1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Made inspectdb used Cursor.description.display_size for CharFields' max_length.

internal_size is size for fixed-size types not for char types.
This commit is contained in:
Mariusz Felisiak
2022-12-08 09:00:35 +01:00
committed by GitHub
parent 95a101a690
commit cbc0fb3705
7 changed files with 19 additions and 12 deletions

View File

@@ -409,6 +409,10 @@ Miscellaneous
* The minimum supported version of SQLite is increased from 3.9.0 to 3.21.0.
* :djadmin:`inspectdb` now uses ``display_size`` from
``DatabaseIntrospection.get_table_description()`` rather than
``internal_size`` for ``CharField``.
.. _deprecated-features-4.2:
Features deprecated in 4.2