models: Rename UserTopic.date_muted to last_updated.

This is a follow-up to #19388.

We will in the future allow patch requests to change the visibility
of an existing topic, so `last_updated` is better name for this field.

This commit does not affect the API or events in any way, but only the
database.
This commit is contained in:
Abhijeet Prasad Bodas
2021-07-29 18:45:42 +05:30
committed by Tim Abbott
parent ea6a40661c
commit 2aea944a7e
5 changed files with 28 additions and 10 deletions

View File

@@ -277,7 +277,7 @@ ANALYTICS_TABLES = {
DATE_FIELDS: Dict[TableName, List[Field]] = {
"zerver_attachment": ["create_time"],
"zerver_message": ["last_edit_time", "date_sent"],
"zerver_mutedtopic": ["date_muted"],
"zerver_mutedtopic": ["last_updated"],
"zerver_realm": ["date_created"],
"zerver_stream": ["date_created"],
"zerver_useractivity": ["last_visit"],