mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
ef1340bd32
Summary: Ref PHI1292. Enable fulltext searchs in paste. Maybe this should only index a snippet instead of the entire content? Also updates table names in `PhabricatorPasteQuery`. Test Plan: Created some pastes, indexed them, searched for them. Reviewers: amckinley Subscribers: codeblock, Korvin, PHID-OPKG-gm6ozazyms6q6i22gyam Differential Revision: https://secure.phabricator.com/D20650
7 lines
313 B
SQL
7 lines
313 B
SQL
CREATE TABLE {$NAMESPACE}_paste.paste_paste_fngrams_common (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
ngram CHAR(3) NOT NULL COLLATE {$COLLATE_TEXT},
|
|
needsCollection BOOL NOT NULL,
|
|
UNIQUE KEY `key_ngram` (ngram),
|
|
KEY `key_collect` (needsCollection)
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|