diff --git a/archive/src/main/resources/org/openrs2/archive/migrations/V1__init.sql b/archive/src/main/resources/org/openrs2/archive/migrations/V1__init.sql index 43bf21f443..6edbc0237a 100644 --- a/archive/src/main/resources/org/openrs2/archive/migrations/V1__init.sql +++ b/archive/src/main/resources/org/openrs2/archive/migrations/V1__init.sql @@ -44,6 +44,7 @@ CREATE TABLE containers ( CREATE INDEX ON containers USING HASH (crc32); CREATE INDEX ON containers (id) WHERE encrypted AND key_id IS NULL; +CREATE INDEX ON containers (key_id) WHERE key_id IS NOT NULL; CREATE TABLE brute_force_iterator ( last_container_id BIGINT NULL,