use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
- define('DB_UPDATE_VERSION', 1483);
+ define('DB_UPDATE_VERSION', 1484);
}
return [
"uid" => ["uid"],
]
],
+ "account-user" => [
+ "comment" => "Remote and local accounts",
+ "fields" => [
+ "id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "sequential ID"],
+ "uri-id" => ["type" => "int unsigned", "not null" => "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", "foreign" => ["user" => "uid"], "comment" => "User ID"],
+ ],
+ "indexes" => [
+ "PRIMARY" => ["id"],
+ "uri-id_uid" => ["UNIQUE", "uri-id", "uid"],
+ "uid_uri-id" => ["uid", "uri-id"],
+ ]
+ ],
"addon" => [
"comment" => "registered addons",
"fields" => [
"network" => ["type" => "char(4)", "not null" => "1", "default" => "", "comment" => ""],
"alias" => ["type" => "varbinary(383)", "not null" => "1", "default" => "", "comment" => ""],
"pubkey" => ["type" => "text", "comment" => ""],
+ "created" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
"updated" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
"interacting_count" => ["type" => "int unsigned", "default" => 0, "comment" => "Number of contacts this contact interactes with"],
"interacted_count" => ["type" => "int unsigned", "default" => 0, "comment" => "Number of contacts that interacted with this contact"],
"uid" => ["uid"],
]
],
- "pagecache" => [
- "comment" => "Stores temporary data",
- "fields" => [
- "page" => ["type" => "varbinary(255)", "not null" => "1", "primary" => "1", "comment" => "Page"],
- "uri-id" => ["type" => "int unsigned", "foreign" => ["item-uri" => "id"], "comment" => "Id of the item-uri table that contains the uri the page belongs to"],
- "content" => ["type" => "mediumtext", "comment" => "Page content"],
- "fetched" => ["type" => "datetime", "comment" => "date when the page had been fetched"],
- ],
- "indexes" => [
- "PRIMARY" => ["page"],
- "fetched" => ["fetched"],
- "uri-id" => ["uri-id"],
- ],
- ],
"parsed_url" => [
"comment" => "cache for 'parse_url' queries",
"fields" => [