mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-15 01:50:55 +01:00
b0e145f2fe
Summary: Ref T418. Depends on D6992. This adds index and value storage for Maniphest custom fields. Test Plan: Ran storage upgrade. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T418 Differential Revision: https://secure.phabricator.com/D6995
29 lines
1.1 KiB
SQL
29 lines
1.1 KiB
SQL
CREATE TABLE {$NAMESPACE}_maniphest.maniphest_customfieldstorage (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
objectPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
|
fieldIndex CHAR(12) NOT NULL COLLATE utf8_bin,
|
|
fieldValue LONGTEXT NOT NULL,
|
|
UNIQUE KEY (objectPHID, fieldIndex)
|
|
) ENGINE=InnoDB, COLLATE utf8_general_ci;
|
|
|
|
CREATE TABLE {$NAMESPACE}_maniphest.maniphest_customfieldstringindex (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
objectPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
|
indexKey VARCHAR(12) NOT NULL COLLATE utf8_bin,
|
|
indexValue LONGTEXT NOT NULL COLLATE utf8_general_ci,
|
|
|
|
KEY `key_join` (objectPHID, indexKey, indexValue(64)),
|
|
KEY `key_find` (indexKey, indexValue(64))
|
|
|
|
) ENGINE=InnoDB, COLLATE utf8_general_ci;
|
|
|
|
CREATE TABLE {$NAMESPACE}_maniphest.maniphest_customfieldnumericindex (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
objectPHID VARCHAR(64) NOT NULL COLLATE utf8_bin,
|
|
indexKey VARCHAR(12) NOT NULL COLLATE utf8_bin,
|
|
indexValue BIGINT NOT NULL,
|
|
|
|
KEY `key_join` (objectPHID, indexKey, indexValue),
|
|
KEY `key_find` (indexKey, indexValue)
|
|
|
|
) ENGINE=InnoDB, COLLATE utf8_general_ci;
|