[Database version 1449] Coalesce null values in post-content.body field of post-user-view view

This commit is contained in:
Hypolite Petovan 2022-01-29 02:45:12 -05:00
parent ad43c6f930
commit 34ca5958a8
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
-- ------------------------------------------
-- Friendica 2021.12-rc (Siberian Iris)
-- DB_UPDATE_VERSION 1448
-- DB_UPDATE_VERSION 1449
-- ------------------------------------------
@ -1614,7 +1614,7 @@ CREATE VIEW `post-user-view` AS SELECT
`post-content`.`title` AS `title`,
`post-content`.`content-warning` AS `content-warning`,
`post-content`.`raw-body` AS `raw-body`,
`post-content`.`body` AS `body`,
IFNULL (`post-content`.`body`, '') AS `body`,
`post-content`.`rendered-hash` AS `rendered-hash`,
`post-content`.`rendered-html` AS `rendered-html`,
`post-content`.`language` AS `language`,

View File

@ -55,7 +55,7 @@
use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1448);
define('DB_UPDATE_VERSION', 1449);
}
return [

View File

@ -101,7 +101,7 @@
"title" => ["post-content", "title"],
"content-warning" => ["post-content", "content-warning"],
"raw-body" => ["post-content", "raw-body"],
"body" => ["post-content", "body"],
"body" => "IFNULL (`post-content`.`body`, '')",
"rendered-hash" => ["post-content", "rendered-hash"],
"rendered-html" => ["post-content", "rendered-html"],
"language" => ["post-content", "language"],