1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-14 02:42:40 +01:00
phorge-phorge/resources/sql/autopatches/20150527.calendar.recurringevents.sql

18 lines
586 B
MySQL
Raw Normal View History

ALTER TABLE {$NAMESPACE}_calendar.calendar_event
ADD isRecurring BOOL NOT NULL;
ALTER TABLE {$NAMESPACE}_calendar.calendar_event
ADD recurrenceFrequency LONGTEXT COLLATE {$COLLATE_TEXT} NOT NULL;
ALTER TABLE {$NAMESPACE}_calendar.calendar_event
ADD recurrenceEndDate INT UNSIGNED;
ALTER TABLE {$NAMESPACE}_calendar.calendar_event
ADD instanceOfEventPHID varbinary(64);
ALTER TABLE {$NAMESPACE}_calendar.calendar_event
ADD sequenceIndex INT UNSIGNED;
UPDATE {$NAMESPACE}_calendar.calendar_event
SET recurrenceFrequency = '[]' WHERE recurrenceFrequency = '';