Count indexes with a zero version/checksum as valid

Signed-off-by: Graham <gpe@openrs2.org>
bzip2
Graham 4 years ago
parent 2411a16bc2
commit 76dba3f404
  1. 2
      archive/src/main/resources/org/openrs2/archive/migrations/V1__init.sql

@ -185,7 +185,7 @@ SELECT
FROM (
SELECT
a.master_index_id,
COUNT(DISTINCT a.archive_id) FILTER (WHERE i.container_id IS NOT NULL) AS valid_indexes,
COUNT(DISTINCT a.archive_id) FILTER (WHERE i.container_id IS NOT NULL OR (a.version = 0 AND a.crc32 = 0)) AS valid_indexes,
COUNT(DISTINCT a.archive_id) AS indexes
FROM master_index_archives a
LEFT JOIN groups g ON g.archive_id = 255 AND g.group_id = a.archive_id::INTEGER AND

Loading…
Cancel
Save