mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 15:22:41 +01:00
08a19f35f0
Summary: Ref T8116. Add search-by-name and per-package / per-publisher search to Packages. Test Plan: Searched publishers, packages, versions by name. Searched packages by publisher. Searched versions by package. Reviewers: chad Reviewed By: chad Maniphest Tasks: T8116 Differential Revision: https://secure.phabricator.com/D16320
7 lines
315 B
SQL
7 lines
315 B
SQL
CREATE TABLE {$NAMESPACE}_packages.packages_publishername_ngrams (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
objectID INT UNSIGNED NOT NULL,
|
|
ngram CHAR(3) NOT NULL COLLATE {$COLLATE_TEXT},
|
|
KEY `key_object` (objectID),
|
|
KEY `key_ngram` (ngram, objectID)
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|