Skip to content

Commit b032697

Browse files
committed
fix: terrible migration, ignore that
1 parent 5aaa2b5 commit b032697

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

services/map-service/internal/db/migrations/000019_clear_rate_not_win_count.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ select m.id,
3131
coalesce(stats.play_count, 0) as play_count,
3232
coalesce(stats.win_count, 0) as win_count,
3333
coalesce(likes.total_likes, 0) as total_likes,
34-
coalesce(stats.clear_rate, 0) as clear_rate,
34+
coalesce(stats.clear_rate::float, 0::float)::float as clear_rate,
3535
case
3636
when stats.play_count < 10 then -1
3737
when stats.clear_rate < 0.05 then 4

services/map-service/internal/db/models.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)