Skip to content

Commit

Permalink
Tweak migration to allow offline use
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanseymour committed Nov 22, 2024
1 parent d8a9b67 commit 2782963
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions temba/flows/migrations/0341_backfill_engagement_counts.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ def add_count(scope: str, count: int):
return len(to_create)


def apply_manual(): # pragma: no cover
from django.apps import apps

backfill_engagement_counts(apps, None)


class Migration(migrations.Migration):

dependencies = [("flows", "0340_update_triggers")]
Expand Down

0 comments on commit 2782963

Please sign in to comment.