[Database 1526] Add new user-gserver table

- Add Entity, Collection, Factory and Repository classes for it
This commit is contained in:
Hypolite Petovan 2023-07-09 15:56:09 -04:00
commit 9bbb55b2bb
8 changed files with 342 additions and 2 deletions

View file

@ -56,7 +56,7 @@ use Friendica\Database\DBA;
// This file is required several times during the test in DbaDefinition which justifies this condition
if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1525);
define('DB_UPDATE_VERSION', 1526);
}
return [
@ -159,6 +159,17 @@ return [
"email" => ["email(64)"],
]
],
"user-gserver" => [
"comment" => "User settings about remote servers",
"fields" => [
"uid" => ["type" => "mediumint unsigned", "not null" => "1", "default" => "0", "foreign" => ["user" => "uid"], "comment" => "Owner User id"],
"gsid" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "foreign" => ["gserver" => "id"], "comment" => "Gserver id"],
"ignored" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "server accounts are ignored for the user"],
],
"indexes" => [
"PRIMARY" => ["uid", "gsid"],
],
],
"item-uri" => [
"comment" => "URI and GUID for items",
"fields" => [