mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	models: Use default db table name for UserTopic.
Also update the realm import/export code and tests accordingly.
This commit is contained in:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							2aea944a7e
						
					
				
				
					commit
					4455dac424
				
			@@ -163,7 +163,7 @@ ALL_ZULIP_TABLES = {
 | 
			
		||||
    "zerver_userprofile_groups",
 | 
			
		||||
    "zerver_userprofile_user_permissions",
 | 
			
		||||
    "zerver_userstatus",
 | 
			
		||||
    "zerver_mutedtopic",
 | 
			
		||||
    "zerver_usertopic",
 | 
			
		||||
    "zerver_muteduser",
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@@ -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": ["last_updated"],
 | 
			
		||||
    "zerver_usertopic": ["last_updated"],
 | 
			
		||||
    "zerver_realm": ["date_created"],
 | 
			
		||||
    "zerver_stream": ["date_created"],
 | 
			
		||||
    "zerver_useractivity": ["last_visit"],
 | 
			
		||||
@@ -756,7 +756,7 @@ def get_realm_config() -> Config:
 | 
			
		||||
    )
 | 
			
		||||
 | 
			
		||||
    Config(
 | 
			
		||||
        table="zerver_mutedtopic",
 | 
			
		||||
        table="zerver_usertopic",
 | 
			
		||||
        model=UserTopic,
 | 
			
		||||
        normal_parent=user_profile_config,
 | 
			
		||||
        parent_key="user_profile__in",
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user