1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-15 01:50:55 +01:00
phorge-phorge/resources/sql/patches/20130925.mpolicy.sql
epriestley 225a38c7d3 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
2013-09-25 11:18:47 -07:00

11 lines
405 B
SQL

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 = '';