1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-25 16:22:43 +01:00

Add viewPolicy, editPolicy storage to tasks

Summary: Ref T603. Adds storage for custom policies.

Test Plan: Ran storage upgrade. Created and edited tasks.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran

Maniphest Tasks: T603

Differential Revision: https://secure.phabricator.com/D7118
This commit is contained in:
epriestley 2013-09-25 11:18:47 -07:00
parent 26a226b51a
commit 225a38c7d3
3 changed files with 17 additions and 0 deletions

View file

@ -0,0 +1,11 @@
ALTER TABLE {$NAMESPACE}_maniphest.maniphest_task
ADD viewPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin;
ALTER TABLE {$NAMESPACE}_maniphest.maniphest_task
ADD editPolicy VARCHAR(64) NOT NULL COLLATE utf8_bin;
UPDATE {$NAMESPACE}_maniphest.maniphest_task
SET viewPolicy = 'users' WHERE viewPolicy = '';
UPDATE {$NAMESPACE}_maniphest.maniphest_task
SET editPolicy = 'users' WHERE editPolicy = '';

View file

@ -27,6 +27,8 @@ final class ManiphestTask extends ManiphestDAO
protected $description = '';
protected $originalEmailSource;
protected $mailKey;
protected $viewPolicy = PhabricatorPolicies::POLICY_USER;
protected $editPolicy = PhabricatorPolicies::POLICY_USER;
protected $attached = array();
protected $projectPHIDs = array();

View file

@ -1628,6 +1628,10 @@ final class PhabricatorBuiltinPatchList extends PhabricatorSQLPatchList {
'type' => 'sql',
'name' => $this->getPatchPath('20130924.mdraftkey.sql'),
),
'20130925.mpolicy.sql' => array(
'type' => 'sql',
'name' => $this->getPatchPath('20130925.mpolicy.sql'),
),
);
}
}