New model class "host"

This commit is contained in:
Michael 2020-09-02 19:19:00 +00:00
commit 6acf660ebd
3 changed files with 102 additions and 2 deletions

View file

@ -54,7 +54,7 @@
use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1366);
define('DB_UPDATE_VERSION', 1367);
}
return [
@ -653,6 +653,17 @@ return [
"hook_file_function" => ["UNIQUE", "hook", "file", "function"],
]
],
"host" => [
"comment" => "Hostname",
"fields" => [
"id" => ["type" => "tinyint unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "sequential ID"],
"name" => ["type" => "varchar(128)", "not null" => "1", "default" => "", "comment" => "The hostname"],
],
"indexes" => [
"PRIMARY" => ["id"],
"name" => ["UNIQUE", "name"],
]
],
"inbox-status" => [
"comment" => "Status of ActivityPub inboxes",
"fields" => [