1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00
phorge-phorge/resources/sql/autopatches/20150317.conpherence.policy.sql

18 lines
662 B
MySQL
Raw Normal View History

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