1
1
Fork 0

[dbstructure 1373] Replace contact.blocked with user.blocked in owner-view

- It was falsely reporting blocked users as unblocked since we don't block the public self contact
This commit is contained in:
Hypolite Petovan 2020-11-08 02:23:28 -05:00
parent 6d9e170502
commit 254b5ae07a
3 changed files with 3 additions and 3 deletions

View file

@ -1574,7 +1574,7 @@ CREATE VIEW `owner-view` AS SELECT
`contact`.`term-date` AS `term-date`, `contact`.`term-date` AS `term-date`,
`contact`.`last-item` AS `last-item`, `contact`.`last-item` AS `last-item`,
`contact`.`priority` AS `priority`, `contact`.`priority` AS `priority`,
`contact`.`blocked` AS `blocked`, `user`.`blocked` AS `blocked`,
`contact`.`block_reason` AS `block_reason`, `contact`.`block_reason` AS `block_reason`,
`contact`.`readonly` AS `readonly`, `contact`.`readonly` AS `readonly`,
`contact`.`writable` AS `writable`, `contact`.`writable` AS `writable`,

View file

@ -54,7 +54,7 @@
use Friendica\Database\DBA; use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) { if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1372); define('DB_UPDATE_VERSION', 1373);
} }
return [ return [

View file

@ -181,7 +181,7 @@ return [
"term-date" => ["contact", "term-date"], "term-date" => ["contact", "term-date"],
"last-item" => ["contact", "last-item"], "last-item" => ["contact", "last-item"],
"priority" => ["contact", "priority"], "priority" => ["contact", "priority"],
"blocked" => ["contact", "blocked"], /// @todo Check if "blocked" from contact or from the users table "blocked" => ["user", "blocked"],
"block_reason" => ["contact", "block_reason"], "block_reason" => ["contact", "block_reason"],
"readonly" => ["contact", "readonly"], "readonly" => ["contact", "readonly"],
"writable" => ["contact", "writable"], "writable" => ["contact", "writable"],