Skip to content

Commit

Permalink
probably a bit more readable to just use ::jsonb
Browse files Browse the repository at this point in the history
  • Loading branch information
tkaemming committed Mar 13, 2024
1 parent 95b9ef7 commit a8708e9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 *
""",
Expand Down

0 comments on commit a8708e9

Please sign in to comment.