mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
Support MySQL 5.5
Summary: `116.utf8.sql` throws this under MySQL 5.5: > Column length too big for column 'keyBody' (max = 21845); use BLOB or TEXT instead I guess that's because MySQL 5.5 changed maximum length of UTF-8 character from 3 bytes to 4. I've updated also `116.utf8.sql` for people with new installs. Test Plan: upgrade_schema.php Reviewers: epriestley Reviewed By: epriestley CC: aran Differential Revision: https://secure.phabricator.com/D2117
This commit is contained in:
parent
23988ca482
commit
6aa729b1c9
2 changed files with 4 additions and 2 deletions
|
@ -1125,7 +1125,7 @@ ALTER TABLE `phabricator_user`.`user_sshkey`
|
|||
MODIFY `userPHID` varchar(64) CHARACTER SET binary,
|
||||
MODIFY `name` varchar(255) CHARACTER SET binary,
|
||||
MODIFY `keyType` varchar(255) CHARACTER SET binary,
|
||||
MODIFY `keyBody` varchar(32768) CHARACTER SET binary,
|
||||
MODIFY `keyBody` text CHARACTER SET binary,
|
||||
MODIFY `keyHash` varchar(32) CHARACTER SET binary,
|
||||
MODIFY `keyComment` varchar(255) CHARACTER SET binary;
|
||||
ALTER TABLE `phabricator_user`.`user_sshkey`
|
||||
|
@ -1133,7 +1133,7 @@ ALTER TABLE `phabricator_user`.`user_sshkey`
|
|||
MODIFY `userPHID` varchar(64) COLLATE utf8_bin NOT NULL,
|
||||
MODIFY `name` varchar(255) COLLATE utf8_general_ci,
|
||||
MODIFY `keyType` varchar(255) COLLATE utf8_general_ci,
|
||||
MODIFY `keyBody` varchar(32768) COLLATE utf8_bin,
|
||||
MODIFY `keyBody` text COLLATE utf8_bin,
|
||||
MODIFY `keyHash` varchar(32) COLLATE utf8_bin NOT NULL,
|
||||
MODIFY `keyComment` varchar(255) COLLATE utf8_general_ci;
|
||||
|
||||
|
|
2
resources/sql/patches/127.userkeybody.sql
Normal file
2
resources/sql/patches/127.userkeybody.sql
Normal file
|
@ -0,0 +1,2 @@
|
|||
ALTER TABLE `phabricator_user`.`user_sshkey`
|
||||
MODIFY `keyBody` text COLLATE utf8_bin;
|
Loading…
Reference in a new issue