mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-18 02:31:10 +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:
parent
8f8c61be31
commit
df86f87289
3 changed files with 6 additions and 2 deletions
2
resources/sql/patches/20130912.maniphest.2.created.sql
Normal file
2
resources/sql/patches/20130912.maniphest.2.created.sql
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
ALTER TABLE {$NAMESPACE}_maniphest.maniphest_task
|
||||||
|
ADD KEY `key_dateCreated` (dateCreated);
|
|
@ -232,8 +232,6 @@ final class ManiphestTaskQuery
|
||||||
$where[] = $this->buildXProjectWhereClause($conn);
|
$where[] = $this->buildXProjectWhereClause($conn);
|
||||||
$where[] = $this->buildFullTextWhereClause($conn);
|
$where[] = $this->buildFullTextWhereClause($conn);
|
||||||
|
|
||||||
// TODO: Add a key for this the next time we hit this table.
|
|
||||||
|
|
||||||
if ($this->dateCreatedAfter) {
|
if ($this->dateCreatedAfter) {
|
||||||
$where[] = qsprintf(
|
$where[] = qsprintf(
|
||||||
$conn,
|
$conn,
|
||||||
|
|
|
@ -1576,6 +1576,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList {
|
||||||
'type' => 'sql',
|
'type' => 'sql',
|
||||||
'name' => $this->getPatchPath('20130912.maniphest.1.touch.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'),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue