Added server discovery for their relais configuration

This commit is contained in:
Michael 2018-03-26 05:44:53 +00:00
parent bfc2bda9b6
commit e65bd0325e
4 changed files with 62 additions and 4 deletions

View file

@ -1074,6 +1074,8 @@ class DBStructure
"noscrape" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
"network" => ["type" => "char(4)", "not null" => "1", "default" => "", "comment" => ""],
"platform" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
"relay-subscribe" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Has the server subscribed to the relay system"],
"relay-scope" => ["type" => "varchar(10)", "not null" => "1", "default" => "", "comment" => "The scope of messages that the server wants to get"],
"created" => ["type" => "datetime", "not null" => "1", "default" => NULL_DATE, "comment" => ""],
"last_poco_query" => ["type" => "datetime", "default" => NULL_DATE, "comment" => ""],
"last_contact" => ["type" => "datetime", "default" => NULL_DATE, "comment" => ""],
@ -1084,6 +1086,17 @@ class DBStructure
"nurl" => ["UNIQUE", "nurl(190)"],
]
];
$database["gserver-tag"] = [
"comment" => "Tags that the server has subscribed",
"fields" => [
"gserver-id" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "relation" => ["gserver" => "id"], "primary" => "1", "comment" => "The id of the gserver"],
"tag" => ["type" => "varchar(100)", "not null" => "1", "default" => "", "primary" => "1", "comment" => "Tag that the server has subscribed"],
],
"indexes" => [
"PRIMARY" => ["gserver-id", "tag"],
"tag" => ["tag"],
]
];
$database["hook"] = [
"comment" => "addon hook registry",
"fields" => [