mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
Shorten Phriction slug field to 256 to avoid key length issues in UTF-8 default
databases Summary: This is a stopgap patch until we fix T345/T327 properly, but you can't add a 512-character key to a UTF-8 column because it creates an index on more than 767 bytes, which is the key length limit. Test Plan: Ran schmea upgrade script. Reviewers: indiefan, btrahan, jungejason Reviewed By: jungejason CC: aran, epriestley, xela, jungejason Maniphest Tasks: T327 Differential Revision: https://secure.phabricator.com/D1391
This commit is contained in:
parent
cedb0c045a
commit
13bf353f14
2 changed files with 3 additions and 1 deletions
|
@ -4,7 +4,7 @@ CREATE TABLE phabricator_phriction.phriction_document (
|
|||
id INT UNSIGNED NOT NULL,
|
||||
phid VARCHAR(64) BINARY NOT NULL,
|
||||
UNIQUE KEY (phid),
|
||||
slug VARCHAR(512) NOT NULL,
|
||||
slug VARCHAR(256) NOT NULL,
|
||||
UNIQUE KEY (slug),
|
||||
depth INT UNSIGNED NOT NULL,
|
||||
UNIQUE KEY (depth, slug),
|
||||
|
|
2
resources/sql/patches/094.phrictioncolumn.sql
Normal file
2
resources/sql/patches/094.phrictioncolumn.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE phabricator_phriction.phriction_document
|
||||
CHANGE slug slug VARCHAR(256) NOT NULL;
|
Loading…
Reference in a new issue