mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 14:30:56 +01:00
ddce177d81
Summary: See T585. We currently don't match middle/last/nth names in on-demand tokenizers. Build a table so we can match them. Test Plan: Ran upgrade script, verified table looks sensible. Searched for "priestley" in a tokenizer, got a bunch of test account hits. mysql> select * from user_nametoken; +-------------------+--------+ | token | userID | +-------------------+--------+ | evan | 1 | | priestley | 1 | | epriestley | 1 | | epriestley2 | 2 | | ducks | 4 | | epriestley3 | 4 | | asdf | 6 | | epriestley99 | 6 | ... Reviewers: bh, nh, jungejason, tuomaspelkonen, aran Reviewed By: aran CC: aran Differential Revision: 1034
6 lines
157 B
SQL
6 lines
157 B
SQL
CREATE TABLE phabricator_user.user_nametoken (
|
|
token VARCHAR(255) NOT NULL,
|
|
userID INT UNSIGNED NOT NULL,
|
|
KEY (token),
|
|
key (userID)
|
|
) ENGINE=InnoDB;
|