[Database 1526] Add new user-gserver table
- Add Entity, Collection, Factory and Repository classes for it
This commit is contained in:
parent
2ba3069b07
commit
9bbb55b2bb
8 changed files with 342 additions and 2 deletions
|
@ -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" => [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue