@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

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

+6 -2
+2
resources/sql/patches/20130912.maniphest.2.created.sql
··· 1 + ALTER TABLE {$NAMESPACE}_maniphest.maniphest_task 2 + ADD KEY `key_dateCreated` (dateCreated);
-2
src/applications/maniphest/query/ManiphestTaskQuery.php
··· 232 232 $where[] = $this->buildXProjectWhereClause($conn); 233 233 $where[] = $this->buildFullTextWhereClause($conn); 234 234 235 - // TODO: Add a key for this the next time we hit this table. 236 - 237 235 if ($this->dateCreatedAfter) { 238 236 $where[] = qsprintf( 239 237 $conn,
+4
src/infrastructure/storage/patch/PhabricatorBuiltinPatchList.php
··· 1576 1576 'type' => 'sql', 1577 1577 'name' => $this->getPatchPath('20130912.maniphest.1.touch.sql'), 1578 1578 ), 1579 + '20130912.maniphest.2.created.sql' => array( 1580 + 'type' => 'sql', 1581 + 'name' => $this->getPatchPath('20130912.maniphest.2.created.sql'), 1582 + ), 1579 1583 ); 1580 1584 } 1581 1585 }