mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 00:45:14 +02:00
Contact suggestions are now cached
This commit is contained in:
parent
8eda9dfe7c
commit
f31e617f5d
13 changed files with 218 additions and 17 deletions
|
@ -55,7 +55,7 @@
|
|||
use Friendica\Database\DBA;
|
||||
|
||||
if (!defined('DB_UPDATE_VERSION')) {
|
||||
define('DB_UPDATE_VERSION', 1495);
|
||||
define('DB_UPDATE_VERSION', 1496);
|
||||
}
|
||||
|
||||
return [
|
||||
|
@ -371,6 +371,18 @@ return [
|
|||
"uid" => ["uid"],
|
||||
]
|
||||
],
|
||||
"account-suggestion" => [
|
||||
"comment" => "Account suggestion",
|
||||
"fields" => [
|
||||
"uri-id" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "foreign" => ["item-uri" => "id"], "comment" => "Id of the item-uri table entry that contains the account url"],
|
||||
"uid" => ["type" => "mediumint unsigned", "not null" => "1", "primary" => "1", "foreign" => ["user" => "uid"], "comment" => "User ID"],
|
||||
"level" => ["type" => "smallint unsigned", "comment" => "level of closeness"],
|
||||
"ignore" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "If set, this account will not be suggested again"], ],
|
||||
"indexes" => [
|
||||
"PRIMARY" => ["uid", "uri-id"],
|
||||
"uri-id_uid" => ["uri-id", "uid"],
|
||||
]
|
||||
],
|
||||
"account-user" => [
|
||||
"comment" => "Remote and local accounts",
|
||||
"fields" => [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue