Changes between Initial Version and Version 1 of Ticket #31144
- Timestamp:
- Jan 8, 2020, 7:38:03 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31144 – Description
initial v1 1 1 There is a bug within db.backends.mysql.validation.check_field_type where the maximum unique constraints is still being limited to 255 characters even though MySQL supports unique keys of up to 1000 characters by default and InnoDB supports 3072 bytes for InnoDB tables that use DYNAMIC or COMPRESSED row format and 767 bytes for InnoDB tables that use the REDUNDANT or COMPACT row format. 2 2 3 MySQL supports VARCHARs of up to 65,535 length. It's only CHAR that is restricted to 255 and as Django creates VARVCHARs there is no need to enforce that limit. 4 3 5 Reference - 4 InnoDB - https://dev.mysql.com/doc/refman/8.0/en/innodb-limits.html5 6 MyISAM - https://dev.mysql.com/doc/refman/8.0/en/myisam-storage-engine.html6 1. InnoDB - https://dev.mysql.com/doc/refman/8.0/en/innodb-limits.html 7 2. MyISAM - https://dev.mysql.com/doc/refman/8.0/en/myisam-storage-engine.html 8 3. CHAR and VARCHAR Types -https://dev.mysql.com/doc/refman/8.0/en/char.html 7 9 8 10 Example … … 23 25 24 26 It just needs the max length to be increased on line 38 of db.backends.mysql.validation 27 28 This is across all branches