mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-18 12:52:42 +01:00
614f911217
Summary: One advantage I wanted to get out of T1191 is automated rebuilds of `quickstart.sql`. If they don't actually work, I'd like to know sooner rather than later. We haven't rebuilt in a couple months, so give it a shot. Ran into two issues: - Some very old patches specify overlong keys which don't work if your default charsets are utf8mb4. Shorten these. No real users have applied these in a very long time. - Some gymnastics around `corpus` for the new Conpherence search index. Test Plan: - Ran `arc unit --everything`, got clean results. - Cost to do a storage upgrade on an empty namespace dropped from ~4s to ~3s. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D11454
6 lines
163 B
SQL
6 lines
163 B
SQL
CREATE TABLE {$NAMESPACE}_user.user_nametoken (
|
|
token VARCHAR(255) NOT NULL,
|
|
userID INT UNSIGNED NOT NULL,
|
|
KEY (token(128)),
|
|
key (userID)
|
|
) ENGINE=InnoDB;
|