Skip to content

Commit 64bebb9

Browse files
authored
fix(report): dominantEmotionCode null 값을 ETC로 수정 (#139)
1 parent a816de2 commit 64bebb9

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
UPDATE type_reports
2+
SET emotion_stats = jsonb_set(
3+
emotion_stats,
4+
'{dominantEmotionCode}',
5+
to_jsonb('ETC'::text),
6+
true
7+
)
8+
WHERE emotion_stats -> 'dominantEmotionCode' IS NULL
9+
OR emotion_stats ->> 'dominantEmotionCode' IS NULL;

0 commit comments

Comments
 (0)