@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add storage and classes for CustomField in Differential

Summary: Ref T3886. Adds the storage, indexes, and storage classes for modernizing Differential custom fields.

Test Plan: Ran `storage upgrade`.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T3886

Differential Revision: https://secure.phabricator.com/D7138

+66
+29
resources/sql/patches/20130926.dcustom.sql
··· 1 + CREATE TABLE {$NAMESPACE}_differential.differential_customfieldstorage ( 2 + id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, 3 + objectPHID VARCHAR(64) NOT NULL COLLATE utf8_bin, 4 + fieldIndex CHAR(12) NOT NULL COLLATE utf8_bin, 5 + fieldValue LONGTEXT NOT NULL, 6 + UNIQUE KEY (objectPHID, fieldIndex) 7 + ) ENGINE=InnoDB, COLLATE utf8_general_ci; 8 + 9 + CREATE TABLE {$NAMESPACE}_differential.differential_customfieldstringindex ( 10 + id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, 11 + objectPHID VARCHAR(64) NOT NULL COLLATE utf8_bin, 12 + indexKey VARCHAR(12) NOT NULL COLLATE utf8_bin, 13 + indexValue LONGTEXT NOT NULL COLLATE utf8_general_ci, 14 + 15 + KEY `key_join` (objectPHID, indexKey, indexValue(64)), 16 + KEY `key_find` (indexKey, indexValue(64)) 17 + 18 + ) ENGINE=InnoDB, COLLATE utf8_general_ci; 19 + 20 + CREATE TABLE {$NAMESPACE}_differential.differential_customfieldnumericindex ( 21 + id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, 22 + objectPHID VARCHAR(64) NOT NULL COLLATE utf8_bin, 23 + indexKey VARCHAR(12) NOT NULL COLLATE utf8_bin, 24 + indexValue BIGINT NOT NULL, 25 + 26 + KEY `key_join` (objectPHID, indexKey, indexValue), 27 + KEY `key_find` (indexKey, indexValue) 28 + 29 + ) ENGINE=InnoDB, COLLATE utf8_general_ci;
+11
src/applications/differential/storage/DifferentialCustomFieldNumericIndex.php
··· 1 + <?php 2 + 3 + final class DifferentialCustomFieldNumericIndex 4 + extends PhabricatorCustomFieldNumericIndexStorage { 5 + 6 + public function getApplicationName() { 7 + return 'differential'; 8 + } 9 + 10 + } 11 +
+11
src/applications/differential/storage/DifferentialCustomFieldStorage.php
··· 1 + <?php 2 + 3 + final class DifferentialCustomFieldStorage 4 + extends PhabricatorCustomFieldStorage { 5 + 6 + public function getApplicationName() { 7 + return 'differential'; 8 + } 9 + 10 + } 11 +
+11
src/applications/differential/storage/DifferentialCustomFieldStringIndex.php
··· 1 + <?php 2 + 3 + final class DifferentialCustomFieldStringIndex 4 + extends PhabricatorCustomFieldStringIndexStorage { 5 + 6 + public function getApplicationName() { 7 + return 'differential'; 8 + } 9 + 10 + } 11 +
+4
src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
··· 1636 1636 'type' => 'sql', 1637 1637 'name' => $this->getPatchPath('20130925.xpolicy.sql'), 1638 1638 ), 1639 + '20130926.dcustom.sql' => array( 1640 + 'type' => 'sql', 1641 + 'name' => $this->getPatchPath('20130926.dcustom.sql'), 1642 + ), 1639 1643 ); 1640 1644 } 1641 1645 }