models: Rename Subscription.in_home_view field to is_muted.

This renames Subscription.in_home_view field to is_muted, for greater
clarity as to what it does just from seeing the setting name, without
having to look it up.

Also disabled an obsolete test_migrations test.

Fixes #10042.
This commit is contained in:
Roman Godov
2018-08-03 00:46:05 +03:00
committed by Tim Abbott
parent 5ec8f6e812
commit a50824e031
15 changed files with 159 additions and 29 deletions

View File

@@ -166,7 +166,7 @@ def fix_pre_pointer(cursor: CursorObj, user_profile: UserProfile) -> None:
WHERE (
zerver_subscription.user_profile_id = '%s' AND
zerver_recipient.type = 2 AND
zerver_subscription.in_home_view AND
(NOT zerver_subscription.is_muted) AND
zerver_subscription.active
)
'''