mirror of https://github.com/zulip/zulip.git
27 lines
622 B
Python
27 lines
622 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,),
|
|
),
|
|
]
|
|
)
|
|
]
|