mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 23:02:42 +01:00
b084efb362
Summary: When you edit "X and all future events", X becomes the new parent of an event series. Currently, it loses its relationship to its original parent. Instead, retain that relationship -- it's separate from the normal "parent", but we can use it to make the UI more clear or tweak behaviors later. This mostly just keeps us from losing/destroying data that we might need/want later. Test Plan: - Ran migrations. - Cancelled "X and all future events", saw sensible-appearing beahvior in the database for "seriesParentPHID". Reviewers: chad Reviewed By: chad Differential Revision: https://secure.phabricator.com/D16780
5 lines
178 B
SQL
5 lines
178 B
SQL
ALTER TABLE {$NAMESPACE}_calendar.calendar_event
|
|
ADD seriesParentPHID VARBINARY(64);
|
|
|
|
UPDATE {$NAMESPACE}_calendar.calendar_event
|
|
SET seriesParentPHID = instanceOfEventPHID;
|