From e9f3807cf53fe8ebde356cc5aa57563b79fcd81c Mon Sep 17 00:00:00 2001 From: epriestley Date: Mon, 8 Feb 2016 14:16:51 -0800 Subject: [PATCH] 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 --- resources/sql/autopatches/20160208.task.3.sql | 2 ++ src/applications/maniphest/storage/ManiphestTask.php | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 resources/sql/autopatches/20160208.task.3.sql diff --git a/resources/sql/autopatches/20160208.task.3.sql b/resources/sql/autopatches/20160208.task.3.sql new file mode 100644 index 0000000000..9fae66d8df --- /dev/null +++ b/resources/sql/autopatches/20160208.task.3.sql @@ -0,0 +1,2 @@ +ALTER TABLE {$NAMESPACE}_maniphest.maniphest_task + ADD points DOUBLE; diff --git a/src/applications/maniphest/storage/ManiphestTask.php b/src/applications/maniphest/storage/ManiphestTask.php index a51920aeee..db72bc526c 100644 --- a/src/applications/maniphest/storage/ManiphestTask.php +++ b/src/applications/maniphest/storage/ManiphestTask.php @@ -37,6 +37,7 @@ final class ManiphestTask extends ManiphestDAO protected $ownerOrdering; protected $spacePHID; protected $properties = array(); + protected $points; private $subscriberPHIDs = self::ATTACHABLE; private $groupByProjectPHID = self::ATTACHABLE; @@ -80,6 +81,7 @@ final class ManiphestTask extends ManiphestDAO 'ownerOrdering' => 'text64?', 'originalEmailSource' => 'text255?', 'subpriority' => 'double', + 'points' => 'double?', ), self::CONFIG_KEY_SCHEMA => array( 'key_phid' => null,