mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +01:00
89d038f53e
Summary: Ref T13275. Add portals to the search index so that: - they show up in fulltext global search; and - the typeahead actually uses an index. Also make them taggable with projects as an organizational aid. Test Plan: Indexed portals with `bin/serach index`, searched for a portal with "Query", with fulltext search in main menu, with typehead on "Install Dashboard...", changed the name of a portal and searched again to check that the index updates properly. Reviewers: amckinley Reviewed By: amckinley Subscribers: PHID-OPKG-gm6ozazyms6q6i22gyam Maniphest Tasks: T13275 Differential Revision: https://secure.phabricator.com/D20389
7 lines
322 B
SQL
7 lines
322 B
SQL
CREATE TABLE {$NAMESPACE}_dashboard.dashboard_portal_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};
|