Replace legacy file/category handling
This commit is contained in:
parent
0668b2dfd5
commit
d2ea3eabfb
14 changed files with 103 additions and 253 deletions
|
@ -55,7 +55,7 @@
|
|||
use Friendica\Database\DBA;
|
||||
|
||||
if (!defined('DB_UPDATE_VERSION')) {
|
||||
define('DB_UPDATE_VERSION', 1393);
|
||||
define('DB_UPDATE_VERSION', 1394);
|
||||
}
|
||||
|
||||
return [
|
||||
|
|
|
@ -42,11 +42,9 @@
|
|||
"id" => ["item", "id"],
|
||||
"item_id" => ["item", "id"],
|
||||
"uid" => ["item", "uid"],
|
||||
"internal-uid" => ["item", "uid"],
|
||||
"parent" => ["item", "parent"],
|
||||
"uri" => ["item", "uri"],
|
||||
"uri-id" => ["item", "uri-id"],
|
||||
"internal-uri-id" => ["item", "uri-id"],
|
||||
"parent-uri" => ["item", "parent-uri"],
|
||||
"parent-uri-id" => ["item", "parent-uri-id"],
|
||||
"thr-parent" => ["item", "thr-parent"],
|
||||
|
@ -78,9 +76,6 @@
|
|||
"network" => ["item", "network"],
|
||||
"vid" => ["item", "vid"],
|
||||
"psid" => ["item", "psid"],
|
||||
"attach" => ["item", "attach"],
|
||||
"internal-file-count" => "(SELECT COUNT(*) FROM `post-category` WHERE `post-category`.`uri-id` = `item`.`uri-id`)",
|
||||
"file" => "NULL",
|
||||
"verb" => "IF (`item`.`vid` IS NULL, '', `verb`.`name`)",
|
||||
"title" => ["item-content", "title"],
|
||||
"content-warning" => ["item-content", "content-warning"],
|
||||
|
@ -199,11 +194,9 @@
|
|||
"iid" => ["thread", "iid"],
|
||||
"item_id" => ["item", "id"],
|
||||
"uid" => ["thread", "uid"],
|
||||
"internal-uid" => ["item", "uid"],
|
||||
"parent" => ["item", "parent"],
|
||||
"uri" => ["item", "uri"],
|
||||
"uri-id" => ["item", "uri-id"],
|
||||
"internal-uri-id" => ["item", "uri-id"],
|
||||
"parent-uri" => ["item", "parent-uri"],
|
||||
"parent-uri-id" => ["item", "parent-uri-id"],
|
||||
"thr-parent" => ["item", "thr-parent"],
|
||||
|
@ -236,9 +229,6 @@
|
|||
"network" => ["thread", "network"],
|
||||
"vid" => ["item", "vid"],
|
||||
"psid" => ["item", "psid"],
|
||||
"attach" => ["item", "attach"],
|
||||
"internal-file-count" => "(SELECT COUNT(*) FROM `post-category` WHERE `post-category`.`uri-id` = `item`.`uri-id`)",
|
||||
"file" => "NULL",
|
||||
"verb" => "IF (`item`.`vid` IS NULL, '', `verb`.`name`)",
|
||||
"title" => ["item-content", "title"],
|
||||
"content-warning" => ["item-content", "content-warning"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue