1
0
Fork 0

Merge pull request #11194 from MrPetovan/bug/11193-post-user-view-body-null

[Database version 1449] Coalesce null values in post-content.body field of post-user-view view
This commit is contained in:
Michael Vogel 2022-01-29 11:58:30 +01:00 committed by GitHub
commit 0ad9d300ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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"],