core: fix relation vector indexes in code and migrations to start from 0 instead of 1 (#6460)

This commit is contained in:
spaced4ndy authored and GitHub committed 2025-11-24 09:43:33 +00:00
1 parent af7540248e
commit 65e3d8ca7c
4 files changed
+22 -30

No files matched your search

+1 -1
View File
@@ -462,7 +462,7 @@ getUpdateNextIndexInGroup_ db groupId =
UPDATE groups
SET member_index = member_index + 1
WHERE group_id = ?
RETURNING member_index
RETURNING member_index - 1
|]
(Only groupId)