use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
- define('DB_UPDATE_VERSION', 1297);
+ define('DB_UPDATE_VERSION', 1303);
}
return [
"allow_gid" => ["type" => "mediumtext", "comment" => "Access Control - list of allowed groups"],
"deny_cid" => ["type" => "mediumtext", "comment" => "Access Control - list of denied contact.id"],
"deny_gid" => ["type" => "mediumtext", "comment" => "Access Control - list of denied groups"],
+ "backend-class" => ["type" => "tinytext", "comment" => "Storage backend class"],
+ "backend-ref" => ["type" => "text", "comment" => "Storage backend data reference"],
],
"indexes" => [
"PRIMARY" => ["id"],
"comment" => "Background tasks queue entries",
"fields" => [
"id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "Auto incremented worker task id"],
- "parameter" => ["type" => "mediumblob", "comment" => "Task command"],
+ "parameter" => ["type" => "mediumtext", "comment" => "Task command"],
"priority" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "comment" => "Task priority"],
"created" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => "Creation date"],
"pid" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "comment" => "Process id of the worker"],
],
"indexes" => [
"PRIMARY" => ["id"],
- "pid" => ["pid"],
- "parameter" => ["parameter(64)"],
- "priority_created_next_try" => ["priority", "created", "next_try"],
- "done_priority_executed_next_try" => ["done", "priority", "executed", "next_try"],
- "done_executed_next_try" => ["done", "executed", "next_try"],
+ "done_parameter" => ["done", "parameter(64)"],
+ "done_executed" => ["done", "executed"],
+ "done_priority_created" => ["done", "priority", "created"],
"done_priority_next_try" => ["done", "priority", "next_try"],
- "done_next_try" => ["done", "next_try"]
+ "done_pid_next_try" => ["done", "pid", "next_try"],
+ "done_pid_priority_created" => ["done", "pid", "priority", "created"]
]
],
"storage" => [