Add Edit/View Policy to Ponder Questions
Summary: Ref T3578, adds ability to set a default edit and view policy for questions. Not sure what to set viewPolicy to ? Test Plan: Test an old question, edit policy still on myself. Test a new question, see new default. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Maniphest Tasks: T3578 Differential Revision: https://secure.phabricator.com/D13791
This commit is contained in:
5
resources/sql/autopatches/20150804.ponder.question.1.sql
Normal file
5
resources/sql/autopatches/20150804.ponder.question.1.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE {$NAMESPACE}_ponder.ponder_question
|
||||
ADD editPolicy VARBINARY(64) NOT NULL;
|
||||
|
||||
ALTER TABLE {$NAMESPACE}_ponder.ponder_question
|
||||
ADD viewPolicy VARBINARY(64) NOT NULL;
|
||||
2
resources/sql/autopatches/20150804.ponder.question.2.sql
Normal file
2
resources/sql/autopatches/20150804.ponder.question.2.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
UPDATE {$NAMESPACE}_ponder.ponder_question
|
||||
SET editPolicy = authorPHID WHERE editPolicy = '';
|
||||
2
resources/sql/autopatches/20150804.ponder.question.3.sql
Normal file
2
resources/sql/autopatches/20150804.ponder.question.3.sql
Normal file
@@ -0,0 +1,2 @@
|
||||
UPDATE {$NAMESPACE}_ponder.ponder_question
|
||||
SET viewPolicy = 'users' WHERE viewPolicy = '';
|
||||
Reference in New Issue
Block a user