mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #31144 -- Relaxed system check for max_length of CharFields on MySQL/MariaDB by turning into a warning.
This commit is contained in:
@@ -127,9 +127,12 @@ MySQL and MariaDB
|
||||
If you're using MySQL or MariaDB, the following checks will be performed:
|
||||
|
||||
* **mysql.E001**: MySQL/MariaDB does not allow unique ``CharField``\s to have a
|
||||
``max_length`` > 255.
|
||||
``max_length`` > 255. *This check was changed to* ``mysql.W003`` *in Django
|
||||
3.1 as the real maximum size depends on many factors.*
|
||||
* **mysql.W002**: MySQL/MariaDB Strict Mode is not set for database connection
|
||||
'<alias>'. See also :ref:`mysql-sql-mode`.
|
||||
* **mysql.W003**: MySQL/MariaDB may not allow unique ``CharField``\s to have a
|
||||
``max_length`` > 255.
|
||||
|
||||
Model fields
|
||||
------------
|
||||
|
||||
Reference in New Issue
Block a user