mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
e50eccf109
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
9 lines
341 B
SQL
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;
|