mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-28 08:20:57 +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:
parent
26a226b51a
commit
225a38c7d3
3 changed files with 17 additions and 0 deletions
11
resources/sql/patches/20130925.mpolicy.sql
Normal file
11
resources/sql/patches/20130925.mpolicy.sql
Normal 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 = '';
|
|
@ -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();
|
||||
|
|
|
@ -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'),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue