backend_firefox: set bookmark initial sync status

New bookmarks should be assigned SYNC_STATUS_NEW (value 1).
This commit is contained in:
CismonX 2025-03-09 14:21:13 +08:00
parent 0b317c2727
commit 3e6bcb8b4f
No known key found for this signature in database
GPG key ID: 3094873E29A482FB

View file

@ -735,9 +735,9 @@ mozbm_insert (
sqlite3_stmt **stmt_ptr = &ctx->stmts[STMT_MOZBM_INSERT];
char const *sql =
"INSERT INTO `moz_bookmarks` (`parent`, `position`, `title`, "
"`dateAdded`, `lastModified`, `type`, `fk`, `guid`) "
"`dateAdded`, `lastModified`, `type`, `fk`, `guid`, `syncStatus`) "
"VALUES (?1, safeincr((" MOZBM_MAXPOS("?1") ")), ?2, ?3, ?3, "
"?4, nullif(?5, -1), ?6)";
"?4, nullif(?5, -1), ?6, 1)";
int status;
DO_QUERY(ctx, stmt_ptr, sql, NULL, NULL, status, prepare:, ,