From a8708e9f5fef5419cdbdffb19f1375b07f5e2aed Mon Sep 17 00:00:00 2001 From: Ted Kaemming <65315+tkaemming@users.noreply.github.com> Date: Tue, 12 Mar 2024 17:53:47 -0700 Subject: [PATCH] probably a bit more readable to just use ::jsonb --- posthog/management/commands/backfill_distinct_id_overrides.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/posthog/management/commands/backfill_distinct_id_overrides.py b/posthog/management/commands/backfill_distinct_id_overrides.py index 5e58b23782818..e194f45e28bf0 100644 --- a/posthog/management/commands/backfill_distinct_id_overrides.py +++ b/posthog/management/commands/backfill_distinct_id_overrides.py @@ -61,7 +61,7 @@ def execute(self, dry_run: bool = False) -> None: Team.objects.raw( """ UPDATE posthog_team - SET extra_settings = COALESCE(extra_settings, '{}'::jsonb) || jsonb_build_object('distinct_id_overrides_backfilled', true) + SET extra_settings = COALESCE(extra_settings, '{}'::jsonb) || '{"distinct_id_overrides_backfilled": true}'::jsonb WHERE id = %s RETURNING * """,