mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-30 01:10:58 +01:00
22 lines
806 B
MySQL
22 lines
806 B
MySQL
|
CREATE TABLE {$NAMESPACE}_user.user_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}_user.user_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;
|