From 32a4ac0c112f57f6f9ea674d6fc99b458556e93b Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 16 Jan 2021 07:36:47 +0000 Subject: [PATCH] Test: Another test for the test --- database.sql | 6 +++--- static/dbview.config.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/database.sql b/database.sql index aabb45f82..8d0d3594c 100644 --- a/database.sql +++ b/database.sql @@ -1628,9 +1628,9 @@ CREATE VIEW `post-view` AS SELECT `parent-item-author`.`name` AS `parent-author-name`, `parent-item-author`.`network` AS `parent-author-network` FROM `item` - STRAIGHT_JOIN `contact` ON `contact`.`id` = `item`.`contact-id` - STRAIGHT_JOIN `contact` AS `author` ON `author`.`id` = `item`.`author-id` - STRAIGHT_JOIN `contact` AS `owner` ON `owner`.`id` = `item`.`owner-id` + LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` + LEFT JOIN `contact` AS `author` ON `author`.`id` = `item`.`author-id` + LEFT JOIN `contact` AS `owner` ON `owner`.`id` = `item`.`owner-id` LEFT JOIN `contact` AS `causer` ON `causer`.`id` = `item`.`causer-id` LEFT JOIN `verb` ON `verb`.`id` = `item`.`vid` LEFT JOIN `event` ON `event`.`id` = `item`.`event-id` diff --git a/static/dbview.config.php b/static/dbview.config.php index 571b5759f..1772ff9ad 100644 --- a/static/dbview.config.php +++ b/static/dbview.config.php @@ -175,9 +175,9 @@ "parent-author-network" => ["parent-item-author", "network"], ], "query" => "FROM `item` - STRAIGHT_JOIN `contact` ON `contact`.`id` = `item`.`contact-id` - STRAIGHT_JOIN `contact` AS `author` ON `author`.`id` = `item`.`author-id` - STRAIGHT_JOIN `contact` AS `owner` ON `owner`.`id` = `item`.`owner-id` + LEFT JOIN `contact` ON `contact`.`id` = `item`.`contact-id` + LEFT JOIN `contact` AS `author` ON `author`.`id` = `item`.`author-id` + LEFT JOIN `contact` AS `owner` ON `owner`.`id` = `item`.`owner-id` LEFT JOIN `contact` AS `causer` ON `causer`.`id` = `item`.`causer-id` LEFT JOIN `verb` ON `verb`.`id` = `item`.`vid` LEFT JOIN `event` ON `event`.`id` = `item`.`event-id`