1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 16:22:43 +01:00
phorge-phorge/resources/sql/patches/20130912.maniphest.3.nameindex.sql
epriestley e50eccf109 Provide and populate an object name index for Maniphest
Summary: See discussion in D6955. This provides a table we can JOIN against to (effectively) "ORDER BY project name", populates it intially, and keeps it up to date as projects are edited.

Test Plan:
  - Ran storage upgrade, verified projects populated into the table.
  - Edited a project, verified its entry updated.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D6957
2013-09-12 13:06:44 -07:00

9 lines
341 B
SQL

CREATE TABLE {$NAMESPACE}_maniphest.maniphest_nameindex (
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
indexedObjectPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
indexedObjectName VARCHAR(128) NOT NULL,
UNIQUE KEY `key_phid` (indexedObjectPHID),
KEY `key_name` (indexedObjectName)
) ENGINE=InnoDB, COLLATE utf8_general_ci;