2024-06-03 18:29:44 +02:00
|
|
|
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,),
|
|
|
|
),
|
2024-08-13 18:31:43 +02:00
|
|
|
],
|
|
|
|
elidable=True,
|
2024-06-03 18:29:44 +02:00
|
|
|
)
|
|
|
|
]
|