Add has_been_merged to DB

This commit is contained in:
Andras Schmelczer 2025-10-19 11:47:55 +01:00
parent de143f9033
commit 12aa457e3a
6 changed files with 28 additions and 6 deletions

View file

@ -278,7 +278,8 @@ impl Database {
content,
is_deleted,
user_id,
device_id
device_id,
has_been_merged
from latest_document_versions
where relative_path = ?
order by vault_update_id desc -- `latest_document_versions` only contains a single latest version of each document, however,
@ -317,7 +318,8 @@ impl Database {
content,
is_deleted,
user_id,
device_id
device_id,
has_been_merged
from latest_document_versions
where document_id = ?
"#,
@ -351,7 +353,8 @@ impl Database {
content,
is_deleted,
user_id,
device_id
device_id,
has_been_merged
from documents
where vault_update_id = ?"#,
vault_update_id