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

This commit is contained in:
spaced4ndy
2025-11-24 09:43:33 +00:00
committed by GitHub
parent af7540248e
commit 65e3d8ca7c
4 changed files with 22 additions and 30 deletions
+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)