1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02:41 +01:00
phorge-phorge/resources/sql/autopatches/20150317.conpherence.policy.sql
Bob Trahan 85de4419a5 Conpherence - add storage for view / edit / join policy
Summary: Ref T7582. Also adds the basic logic for "rooms" implementation. Also makes sure we use the initializeNewThread method as appropriate.

Test Plan: made a new conpherence and it worked!

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T7582

Differential Revision: https://secure.phabricator.com/D12103
2015-03-17 17:04:44 -07:00

17 lines
662 B
SQL

ALTER TABLE {$NAMESPACE}_conpherence.conpherence_thread
ADD viewPolicy VARBINARY(64) NOT NULL AFTER recentParticipantPHIDs;
UPDATE {$NAMESPACE}_conpherence.conpherence_thread
SET viewPolicy = 'users' WHERE viewPolicy = '';
ALTER TABLE {$NAMESPACE}_conpherence.conpherence_thread
ADD editPolicy VARBINARY(64) NOT NULL AFTER viewPolicy;
UPDATE {$NAMESPACE}_conpherence.conpherence_thread
SET editPolicy = 'users' WHERE editPolicy = '';
ALTER TABLE {$NAMESPACE}_conpherence.conpherence_thread
ADD joinPolicy VARBINARY(64) NOT NULL AFTER editPolicy;
UPDATE {$NAMESPACE}_conpherence.conpherence_thread
SET joinPolicy = 'users' WHERE joinPolicy = '';