Fix typo in master_index_stats JOIN

Signed-off-by: Graham <gpe@openrs2.org>
bzip2
Graham 4 years ago
parent 9bce5cc1b3
commit eeb82d2e47
  1. 4
      archive/src/main/kotlin/org/openrs2/archive/cache/CacheExporter.kt

@ -90,7 +90,7 @@ public class CacheExporter @Inject constructor(
FROM master_indexes m
JOIN sources s ON s.master_index_id = m.id
JOIN games g ON g.id = s.game_id
LEFT JOIN master_index_stats ms ON s.master_index_id = m.id
LEFT JOIN master_index_stats ms ON ms.master_index_id = m.id
GROUP BY m.id, g.name, ms.valid_indexes, ms.indexes, ms.valid_groups, ms.groups, ms.valid_keys, ms.keys
ORDER BY g.name ASC, MIN(s.build) ASC, MIN(s.timestamp) ASC
""".trimIndent()
@ -155,7 +155,7 @@ public class CacheExporter @Inject constructor(
FROM master_indexes m
JOIN sources s ON s.master_index_id = m.id
JOIN games g ON g.id = s.game_id
LEFT JOIN master_index_stats ms ON s.master_index_id = m.id
LEFT JOIN master_index_stats ms ON ms.master_index_id = m.id
WHERE m.id = ?
GROUP BY m.id, ms.valid_indexes, ms.indexes, ms.valid_groups, ms.groups, ms.valid_keys, ms.keys
""".trimIndent()

Loading…
Cancel
Save