mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-26 08:42:41 +01:00
Adjust keys for new Differential inline comment table
Summary: Ref T2222. This sequences //before// D7139 and sorts out keys on the table. In particular: - There was a fairly silly `draft` key modeled after Pholio; drop it. - Add a `revisionPHID` key. This is queried mostly-transitionally on the revision view screen. - Add a `changesetID` key. This is queried by a bunch of interfaces that want more surgical results than `revisionPHID` provides. - Add an `authorPHID, transactionPHID` key. This is queried on the list interface to find pending drafts. - Add a `legacy` key. This is queried by the feed publisher. Test Plan: Used the query analyzer to hit all (I think?) of the pages, saw keyed queries. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T2222 Differential Revision: https://secure.phabricator.com/D7140
This commit is contained in:
parent
d13a322563
commit
3cb67480e0
3 changed files with 25 additions and 0 deletions
15
resources/sql/patches/20130926.dinkeys.sql
Normal file
15
resources/sql/patches/20130926.dinkeys.sql
Normal file
|
@ -0,0 +1,15 @@
|
|||
ALTER TABLE {$NAMESPACE}_differential.differential_transaction_comment
|
||||
DROP KEY `key_draft`;
|
||||
|
||||
ALTER TABLE {$NAMESPACE}_differential.differential_transaction_comment
|
||||
ADD KEY `key_changeset` (changesetID);
|
||||
|
||||
ALTER TABLE {$NAMESPACE}_differential.differential_transaction_comment
|
||||
ADD KEY `key_draft` (authorPHID, transactionPHID);
|
||||
|
||||
ALTER TABLE {$NAMESPACE}_differential.differential_transaction_comment
|
||||
ADD KEY `key_revision` (revisionPHID);
|
||||
|
||||
ALTER TABLE {$NAMESPACE}_differential.differential_transaction_comment
|
||||
ADD KEY `key_legacy` (legacyCommentID);
|
||||
|
|
@ -333,6 +333,9 @@ phutil_register_library_map(array(
|
|||
'DifferentialCommitsFieldSpecification' => 'applications/differential/field/specification/DifferentialCommitsFieldSpecification.php',
|
||||
'DifferentialConflictsFieldSpecification' => 'applications/differential/field/specification/DifferentialConflictsFieldSpecification.php',
|
||||
'DifferentialController' => 'applications/differential/controller/DifferentialController.php',
|
||||
'DifferentialCustomFieldNumericIndex' => 'applications/differential/storage/DifferentialCustomFieldNumericIndex.php',
|
||||
'DifferentialCustomFieldStorage' => 'applications/differential/storage/DifferentialCustomFieldStorage.php',
|
||||
'DifferentialCustomFieldStringIndex' => 'applications/differential/storage/DifferentialCustomFieldStringIndex.php',
|
||||
'DifferentialDAO' => 'applications/differential/storage/DifferentialDAO.php',
|
||||
'DifferentialDateCreatedFieldSpecification' => 'applications/differential/field/specification/DifferentialDateCreatedFieldSpecification.php',
|
||||
'DifferentialDateModifiedFieldSpecification' => 'applications/differential/field/specification/DifferentialDateModifiedFieldSpecification.php',
|
||||
|
@ -2399,6 +2402,9 @@ phutil_register_library_map(array(
|
|||
'DifferentialCommitsFieldSpecification' => 'DifferentialFieldSpecification',
|
||||
'DifferentialConflictsFieldSpecification' => 'DifferentialFieldSpecification',
|
||||
'DifferentialController' => 'PhabricatorController',
|
||||
'DifferentialCustomFieldNumericIndex' => 'PhabricatorCustomFieldNumericIndexStorage',
|
||||
'DifferentialCustomFieldStorage' => 'PhabricatorCustomFieldStorage',
|
||||
'DifferentialCustomFieldStringIndex' => 'PhabricatorCustomFieldStringIndexStorage',
|
||||
'DifferentialDAO' => 'PhabricatorLiskDAO',
|
||||
'DifferentialDateCreatedFieldSpecification' => 'DifferentialFieldSpecification',
|
||||
'DifferentialDateModifiedFieldSpecification' => 'DifferentialFieldSpecification',
|
||||
|
|
|
@ -1640,6 +1640,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList {
|
|||
'type' => 'sql',
|
||||
'name' => $this->getPatchPath('20130926.dcustom.sql'),
|
||||
),
|
||||
'20130926.dinkeys.sql' => array(
|
||||
'type' => 'sql',
|
||||
'name' => $this->getPatchPath('20130926.dinkeys.sql'),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue