We now store uncommon endpoints

This commit is contained in:
Michael 2022-04-25 13:45:03 +00:00
commit 990eea2c4e
7 changed files with 156 additions and 4 deletions

View file

@ -55,7 +55,7 @@
use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1459);
define('DB_UPDATE_VERSION', 1460);
}
return [
@ -618,6 +618,18 @@ return [
"PRIMARY" => ["uri-id"]
]
],
"endpoint" => [
"comment" => "ActivityPub endpoints - used in the ActivityPub implementation",
"fields" => [
"url" => ["type" => "varbinary(255)", "not null" => "1", "primary" => "1", "comment" => "URL of the contact"],
"type" => ["type" => "varchar(20)", "not null" => "1", "comment" => ""],
"owner-uri-id" => ["type" => "int unsigned", "foreign" => ["item-uri" => "id"], "comment" => "Id of the item-uri table entry that contains the apcontact url"],
],
"indexes" => [
"PRIMARY" => ["url"],
"owner-uri-id_type" => ["UNIQUE", "owner-uri-id", "type"],
]
],
"event" => [
"comment" => "Events",
"fields" => [