mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +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
8 lines
410 B
SQL
8 lines
410 B
SQL
CREATE TABLE {$NAMESPACE}_paste.paste_paste_ffield (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
documentID INT UNSIGNED NOT NULL,
|
|
fieldKey VARCHAR(4) NOT NULL COLLATE {$COLLATE_TEXT},
|
|
rawCorpus LONGTEXT NOT NULL COLLATE {$COLLATE_SORT},
|
|
termCorpus LONGTEXT NOT NULL COLLATE {$COLLATE_SORT},
|
|
normalCorpus LONGTEXT NOT NULL COLLATE {$COLLATE_SORT}
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|