mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 17:36:27 +00:00
zilencer: Drop data which is no longer sent by remote servers.
This commit is contained in:
committed by
Tim Abbott
parent
7792b12f05
commit
b557297dd2
30
zilencer/migrations/0061_clean_count_tables.py
Normal file
30
zilencer/migrations/0061_clean_count_tables.py
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
from django.db import migrations
|
||||||
|
|
||||||
|
# This matches analytics.lib.counts.LOGGING_COUNT_STAT_PROPERTIES_NOT_SENT_TO_BOUNCER
|
||||||
|
IGNORED = (
|
||||||
|
"invites_sent::day",
|
||||||
|
"mobile_pushes_sent::day",
|
||||||
|
"active_users_log:is_bot:day",
|
||||||
|
"active_users:is_bot:day",
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
class Migration(migrations.Migration):
|
||||||
|
elidable = True
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
|
(
|
||||||
|
"zilencer",
|
||||||
|
"0060_remove_remoterealmcount_unique_remote_realm_installation_count_and_more",
|
||||||
|
),
|
||||||
|
]
|
||||||
|
|
||||||
|
operations = [
|
||||||
|
migrations.RunSQL(
|
||||||
|
[
|
||||||
|
("DELETE FROM zilencer_remoterealmcount WHERE property IN %s", (IGNORED,)),
|
||||||
|
("DELETE FROM zilencer_remoteinstallationcount WHERE property IN %s", (IGNORED,)),
|
||||||
|
],
|
||||||
|
elidable=True,
|
||||||
|
),
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user