mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-08-28 14:14:09 +00:00
core: fix relation vector indexes in code and migrations to start from 0 instead of 1 (#6460)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user