mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-30 10:42:41 +01:00
2d7f574b9d
Summary: Ref T10747. For URI-based (and, in the future, Google-based) imports, we can automatically refresh them periodically. (In the general case there's no way to get a push notification for an ICS file, so we just have to do this every-so-often.) Test Plan: - Set an ICS file to update hourly. - Used `bin/trigger fire --id ...` to fire it artificially. - Saw Calendar update. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10747 Differential Revision: https://secure.phabricator.com/D16752
8 lines
310 B
SQL
8 lines
310 B
SQL
ALTER TABLE {$NAMESPACE}_calendar.calendar_import
|
|
ADD triggerPHID VARBINARY(64);
|
|
|
|
ALTER TABLE {$NAMESPACE}_calendar.calendar_import
|
|
ADD triggerFrequency VARCHAR(64) NOT NULL COLLATE {$COLLATE_TEXT};
|
|
|
|
UPDATE {$NAMESPACE}_calendar.calendar_import
|
|
SET triggerFrequency = 'once' WHERE triggerFrequency = '';
|