From 29541b03a8f0c7c1c6bd3620c1c20a52f29d417a Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 21 Feb 2021 11:48:24 +0000 Subject: [PATCH] Remove collision TODO from V1__init.sql It isn't solved yet, but once we've committed to v1 of the archiving service we won't want to edit V1__init.sql ever again to avoid changing its checksum (Flyway complains if the checksum changes). Signed-off-by: Graham --- .../main/resources/org/openrs2/archive/migrations/V1__init.sql | 1 - 1 file changed, 1 deletion(-) 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 1cb00e13..b974fae4 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 @@ -143,7 +143,6 @@ JOIN groups g ON g.archive_id = 255 AND g.group_id = a.archive_id::INTEGER AND JOIN containers c ON c.id = g.container_id AND c.crc32 = a.crc32 JOIN indexes i ON i.container_id = g.container_id AND i.version = a.version; --- TODO(gpe): think about what to do if there is a collision CREATE VIEW master_index_valid_groups (master_index_id, archive_id, group_id, name_hash, version, data, key_id) AS WITH i AS NOT MATERIALIZED ( SELECT master_index_id, archive_id, data, container_id