1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 01:02:42 +01:00
phorge-phorge/resources/sql/autopatches/20150527.calendar.recurringevents.sql
lkassianik 59f0e8f950 DRAFT Add db columns for recurring events
Summary: Ref T2896, DRAFT Add db columns for recurring events

Test Plan: Open event, confirm it still works.

Reviewers: chad, #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: btrahan, Korvin, epriestley

Maniphest Tasks: T2896

Differential Revision: https://secure.phabricator.com/D13039
2015-05-28 17:27:25 -07:00

17 lines
586 B
SQL

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