mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			650 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			650 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from django.db import migrations
 | 
						|
 | 
						|
REMOVED_COUNTS = (
 | 
						|
    "active_users_log:is_bot:day",
 | 
						|
    "active_users:is_bot:day",
 | 
						|
)
 | 
						|
 | 
						|
 | 
						|
class Migration(migrations.Migration):
 | 
						|
    elidable = True
 | 
						|
 | 
						|
    dependencies = [
 | 
						|
        ("analytics", "0018_remove_usercount_active_users_audit"),
 | 
						|
    ]
 | 
						|
 | 
						|
    operations = [
 | 
						|
        migrations.RunSQL(
 | 
						|
            [
 | 
						|
                ("DELETE FROM analytics_realmcount WHERE property IN %s", (REMOVED_COUNTS,)),
 | 
						|
                (
 | 
						|
                    "DELETE FROM analytics_installationcount WHERE property IN %s",
 | 
						|
                    (REMOVED_COUNTS,),
 | 
						|
                ),
 | 
						|
            ],
 | 
						|
            elidable=True,
 | 
						|
        )
 | 
						|
    ]
 |