[Database version 1449] Coalesce null values in post-content.body field of post-user-view view
This commit is contained in:
parent
ad43c6f930
commit
34ca5958a8
|
@ -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`,
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
use Friendica\Database\DBA;
|
||||
|
||||
if (!defined('DB_UPDATE_VERSION')) {
|
||||
define('DB_UPDATE_VERSION', 1448);
|
||||
define('DB_UPDATE_VERSION', 1449);
|
||||
}
|
||||
|
||||
return [
|
||||
|
|
|
@ -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"],
|
||||
|
|
Loading…
Reference in New Issue
Block a user