1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-30 02:32:42 +01:00
phorge-phorge/resources/sql/autopatches/20150430.calendar.1.policies.sql

12 lines
354 B
MySQL
Raw Normal View History

ALTER TABLE {$NAMESPACE}_calendar.calendar_event
ADD viewPolicy varbinary(64) NOT NULL;
ALTER TABLE {$NAMESPACE}_calendar.calendar_event
ADD editPolicy varbinary(64) NOT NULL;
UPDATE {$NAMESPACE}_calendar.calendar_event
SET viewPolicy = 'users' WHERE viewPolicy = '';
UPDATE {$NAMESPACE}_calendar.calendar_event
SET editPolicy = userPHID;