mirror of
https://github.com/modrinth/code.git
synced 2026-08-25 09:04:55 +00:00
13 lines
281 B
SQL
13 lines
281 B
SQL
UPDATE instances
|
|
SET
|
|
submitted_time_played = CASE
|
|
WHEN submitted_time_played < 0 THEN 0
|
|
ELSE submitted_time_played
|
|
END,
|
|
recent_time_played = CASE
|
|
WHEN recent_time_played < 0 THEN 0
|
|
ELSE recent_time_played
|
|
END
|
|
WHERE submitted_time_played < 0
|
|
OR recent_time_played < 0;
|