mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-15 19:32:40 +01:00
f8080ce931
Summary: Fixes T9351. This is straightforward since this application is now relatively modern and doesn't have any bizarre craziness. Test Plan: {F787981} {F787982} Reviewers: chad Reviewed By: chad Maniphest Tasks: T9351 Differential Revision: https://secure.phabricator.com/D14093
25 lines
1 KiB
SQL
25 lines
1 KiB
SQL
CREATE TABLE {$NAMESPACE}_owners.owners_customfieldstorage (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
objectPHID VARBINARY(64) NOT NULL,
|
|
fieldIndex BINARY(12) NOT NULL,
|
|
fieldValue LONGTEXT NOT NULL COLLATE {$COLLATE_TEXT},
|
|
UNIQUE KEY (objectPHID, fieldIndex)
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|
|
|
|
CREATE TABLE {$NAMESPACE}_owners.owners_customfieldstringindex (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
objectPHID VARBINARY(64) NOT NULL,
|
|
indexKey BINARY(12) NOT NULL,
|
|
indexValue LONGTEXT NOT NULL COLLATE {$COLLATE_SORT},
|
|
KEY `key_join` (objectPHID, indexKey, indexValue(64)),
|
|
KEY `key_find` (indexKey, indexValue(64))
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|
|
|
|
CREATE TABLE {$NAMESPACE}_owners.owners_customfieldnumericindex (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
objectPHID VARBINARY(64) NOT NULL,
|
|
indexKey BINARY(12) NOT NULL,
|
|
indexValue BIGINT NOT NULL,
|
|
KEY `key_join` (objectPHID, indexKey, indexValue),
|
|
KEY `key_find` (indexKey, indexValue)
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|