1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 12:52:42 +01:00

Add a "points" field to tasks

Summary:
Currently never read or written.

Supports fractions.

There's no such thing as an unsigned double so this also supports negative values, technically, although I'll eventually prevent this in the UI.

Test Plan: `bin/storage upgrade`, then created and edited a task. Nothing was different.

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D15218
This commit is contained in:
epriestley 2016-02-08 14:16:51 -08:00
parent 32225d1dd0
commit e9f3807cf5
2 changed files with 4 additions and 0 deletions

View file

@ -0,0 +1,2 @@
ALTER TABLE {$NAMESPACE}_maniphest.maniphest_task
ADD points DOUBLE;

View file

@ -37,6 +37,7 @@ final class ManiphestTask extends ManiphestDAO
protected $ownerOrdering; protected $ownerOrdering;
protected $spacePHID; protected $spacePHID;
protected $properties = array(); protected $properties = array();
protected $points;
private $subscriberPHIDs = self::ATTACHABLE; private $subscriberPHIDs = self::ATTACHABLE;
private $groupByProjectPHID = self::ATTACHABLE; private $groupByProjectPHID = self::ATTACHABLE;
@ -80,6 +81,7 @@ final class ManiphestTask extends ManiphestDAO
'ownerOrdering' => 'text64?', 'ownerOrdering' => 'text64?',
'originalEmailSource' => 'text255?', 'originalEmailSource' => 'text255?',
'subpriority' => 'double', 'subpriority' => 'double',
'points' => 'double?',
), ),
self::CONFIG_KEY_SCHEMA => array( self::CONFIG_KEY_SCHEMA => array(
'key_phid' => null, 'key_phid' => null,