mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-23 07:12:41 +01:00
3f4cc3ad6e
Summary: Ref T10537. Some sources (like the future "GitHub Repository" source) need to poll remotes. - Provide a mechanism for sources to emit import cursors. - Hook them into the trigger daemon so they'll fire periodically. - Provide some storage. This diff does nothing useful or interesting, and is pure infrastructure. Test Plan: - Ran `bin/storage upgrade -f`, no adjustment issues. - Poked around Nuance. - Ran the trigger daemon, verified it didn't crash and checked for Nuance stuff to do. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10537 Differential Revision: https://secure.phabricator.com/D15435
12 lines
554 B
SQL
12 lines
554 B
SQL
CREATE TABLE {$NAMESPACE}_nuance.nuance_importcursordata (
|
|
id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY,
|
|
phid VARBINARY(64) NOT NULL,
|
|
sourcePHID VARBINARY(64) NOT NULL,
|
|
cursorKey VARCHAR(32) NOT NULL COLLATE {$COLLATE_TEXT},
|
|
cursorType VARCHAR(32) NOT NULL COLLATE {$COLLATE_TEXT},
|
|
properties LONGTEXT NOT NULL COLLATE {$COLLATE_TEXT},
|
|
dateCreated INT UNSIGNED NOT NULL,
|
|
dateModified INT UNSIGNED NOT NULL,
|
|
UNIQUE KEY `key_phid` (phid),
|
|
UNIQUE KEY `key_source` (sourcePHID, cursorKey)
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|