mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
e8083ad63a
Summary: Fixes T11453. Currently, commit message summaries are limited to 80 bytes. This may only be 20-40 characters for CJK languages or langauges with Cyrillic script. Increase storage size to 255, then truncate to the shorter of 255 bytes or 80 glyphs. This preserves the same behavior for latin languages, but is less tight for Russian, etc. Some minor additional changes: - Provide a way to ask "how much data fits in this column?" so we don't have to duplicate column lengths across summary checks or UI errors like "title too long". - Remove the `text80` datatype, since no other columns use it and we have no use cases (or likely use cases) for it. Test Plan: - Made a commit with a Cyrillic title, saw reasonable summarization in UI: {F1757522} - Added and ran unit tests. - Grepped for removed `SUMMARY_MAX_LENGTH` constant. - Grepped for removed `text80` data type. Reviewers: avivey, chad Reviewed By: avivey Subscribers: avivey Maniphest Tasks: T11453 Differential Revision: https://secure.phabricator.com/D16385
2 lines
126 B
SQL
2 lines
126 B
SQL
ALTER TABLE {$NAMESPACE}_repository.repository_commit
|
|
CHANGE summary summary VARCHAR(255) NOT NULL COLLATE {$COLLATE_TEXT};
|