mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-27 01:02:42 +01:00
2b495f1f03
Summary: Ref T5833. Allow services and devices to be tagged with projects. (These fluff apply implementations are a good example of the issue discussed in T6403.) Test Plan: {F229569} Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T5833 Differential Revision: https://secure.phabricator.com/D10782
16 lines
569 B
SQL
16 lines
569 B
SQL
CREATE TABLE {$NAMESPACE}_almanac.edge (
|
|
src VARBINARY(64) NOT NULL,
|
|
type INT UNSIGNED NOT NULL,
|
|
dst VARBINARY(64) NOT NULL,
|
|
dateCreated INT UNSIGNED NOT NULL,
|
|
seq INT UNSIGNED NOT NULL,
|
|
dataID INT UNSIGNED,
|
|
PRIMARY KEY (src, type, dst),
|
|
KEY `src` (src, type, dateCreated, seq),
|
|
UNIQUE KEY `key_dst` (dst, type, src)
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|
|
|
|
CREATE TABLE {$NAMESPACE}_almanac.edgedata (
|
|
id INT UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
|
data LONGTEXT NOT NULL COLLATE {$COLLATE_TEXT}
|
|
) ENGINE=InnoDB, COLLATE {$COLLATE_TEXT};
|