use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
- define('DB_UPDATE_VERSION', 1469);
+ define('DB_UPDATE_VERSION', 1474);
}
return [
"cookie_hash" => ["type" => "varchar(80)", "not null" => "1", "primary" => "1", "comment" => "Trusted cookie hash"],
"uid" => ["type" => "mediumint unsigned", "not null" => "1", "foreign" => ["user" => "uid"], "comment" => "User ID"],
"user_agent" => ["type" => "text", "comment" => "User agent string"],
+ "trusted" => ["type" => "boolean", "not null" => "1", "default" => "1", "comment" => "Whenever this browser should be trusted or not"],
"created" => ["type" => "datetime", "not null" => "1", "comment" => "Datetime the trusted browser was recorded"],
"last_used" => ["type" => "datetime", "comment" => "Datetime the trusted browser was last used"],
],
"hook_file_function" => ["UNIQUE", "hook", "file", "function"],
]
],
+ "inbox-entry" => [
+ "comment" => "Incoming activity",
+ "fields" => [
+ "id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "sequential ID"],
+ "activity-id" => ["type" => "varbinary(255)", "comment" => "id of the incoming activity"],
+ "object-id" => ["type" => "varbinary(255)", "comment" => ""],
+ "type" => ["type" => "varchar(64)", "comment" => "Type of the activity"],
+ "object-type" => ["type" => "varchar(64)", "comment" => "Type of the object activity"],
+ "object-object-type" => ["type" => "varchar(64)", "comment" => "Type of the object's object activity"],
+ "received" => ["type" => "datetime", "comment" => "Receiving date"],
+ "activity" => ["type" => "mediumtext", "comment" => "The JSON activity"],
+ "signer" => ["type" => "varchar(255)", "comment" => ""],
+ ],
+ "indexes" => [
+ "PRIMARY" => ["id"],
+ "activity-id" => ["UNIQUE", "activity-id"],
+ "object-id" => ["object-id"],
+ "received" => ["received"],
+ ]
+ ],
+ "inbox-entry-receiver" => [
+ "comment" => "Receiver for the incoming activity",
+ "fields" => [
+ "queue-id" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "foreign" => ["inbox-entry" => "id"], "comment" => ""],
+ "uid" => ["type" => "mediumint unsigned", "not null" => "1", "primary" => "1", "foreign" => ["user" => "uid"], "comment" => "User id"],
+ ],
+ "indexes" => [
+ "PRIMARY" => ["queue-id", "uid"],
+ "uid" => ["uid"],
+ ]
+ ],
"inbox-status" => [
"comment" => "Status of ActivityPub inboxes",
"fields" => [
"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 item uri"],
- "url" => ["type" => "text", "not null" => "1", "comment" => "Media URL"],
+ "url" => ["type" => "varbinary(1024)", "not null" => "1", "comment" => "Media URL"],
"type" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "comment" => "Media type"],
"mimetype" => ["type" => "varchar(60)", "comment" => ""],
"height" => ["type" => "smallint unsigned", "comment" => "Height of the media"],
"width" => ["type" => "smallint unsigned", "comment" => "Width of the media"],
- "size" => ["type" => "mediumint unsigned", "comment" => "Media size"],
- "preview" => ["type" => "varbinary(255)", "comment" => "Preview URL"],
+ "size" => ["type" => "bigint unsigned", "comment" => "Media size"],
+ "preview" => ["type" => "varbinary(512)", "comment" => "Preview URL"],
"preview-height" => ["type" => "smallint unsigned", "comment" => "Height of the preview picture"],
"preview-width" => ["type" => "smallint unsigned", "comment" => "Width of the preview picture"],
"description" => ["type" => "text", "comment" => ""],
],
"indexes" => [
"PRIMARY" => ["id"],
- "uri-id-url" => ["UNIQUE", "uri-id", "url"],
+ "uri-id-url" => ["UNIQUE", "uri-id", "url(512)"],
"uri-id-id" => ["uri-id", "id"],
]
],