use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
- define('DB_UPDATE_VERSION', 1340);
+ define('DB_UPDATE_VERSION', 1341);
}
return [
"icid" => ["icid"],
"iaid" => ["iaid"],
"psid_wall" => ["psid", "wall"],
+ "uri-id" => ["uri-id"],
]
],
"item-activity" => [
INNER JOIN `contact` ON `register`.`uid` = `contact`.`uid`
INNER JOIN `user` ON `register`.`uid` = `user`.`uid`"
],
+ "tag-search-view" => [
+ "fields" => [
+ "uri-id" => ["post-tag", "uri-id"],
+ "uri" => ["item", "uri"],
+ "guid" => ["item", "guid"],
+ "uid" => ["item", "uid"],
+ "private" => ["item", "private"],
+ "name" => ["tag", "name"],
+ ],
+ "query" => "FROM `post-tag`
+ INNER JOIN `tag` ON `tag`.`id` = `post-tag`.`tid`
+ INNER JOIN `item` ON `item`.`uri-id` = `post-tag`.`uri-id`
+ WHERE `post-tag`.`type` = 1"
+ ],
"workerqueue-view" => [
"fields" => [
"pid" => ["process", "pid"],