1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-17 18:21:11 +01:00

Add a "dateCreated" key to Maniphest

Summary: Depends on D6952. Unpunts there since I'm rolling into a swamp full of schema changes.

Test Plan: Issued date-constrained query and saw key as a candidate.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D6954
This commit is contained in:
epriestley 2013-09-12 13:04:31 -07:00
parent 8f8c61be31
commit df86f87289
3 changed files with 6 additions and 2 deletions

View file

@ -0,0 +1,2 @@
ALTER TABLE {$NAMESPACE}_maniphest.maniphest_task
ADD KEY `key_dateCreated` (dateCreated);

View file

@ -232,8 +232,6 @@ final class ManiphestTaskQuery
$where[] = $this->buildXProjectWhereClause($conn);
$where[] = $this->buildFullTextWhereClause($conn);
// TODO: Add a key for this the next time we hit this table.
if ($this->dateCreatedAfter) {
$where[] = qsprintf(
$conn,

View file

@ -1576,6 +1576,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList {
'type' => 'sql',
'name' => $this->getPatchPath('20130912.maniphest.1.touch.sql'),
),
'20130912.maniphest.2.created.sql' => array(
'type' => 'sql',
'name' => $this->getPatchPath('20130912.maniphest.2.created.sql'),
),
);
}
}