Skip to content

Commit

Permalink
fix: set UNQIUE constraint on sync_state record_id
Browse files Browse the repository at this point in the history
  • Loading branch information
hydra-yse committed Nov 13, 2024
1 parent d4be209 commit 8b58ce5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/core/src/persist/migrations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ pub(crate) fn current_migrations() -> Vec<&'static str> {
",
"CREATE TABLE IF NOT EXISTS sync_state(
data_id TEXT NOT NULL PRIMARY KEY,
record_id TEXT NOT NULL,
record_id TEXT NOT NULL UNIQUE,
record_revision INTEGER NOT NULL
) STRICT;",
"CREATE TABLE IF NOT EXISTS sync_settings(
Expand Down

0 comments on commit 8b58ce5

Please sign in to comment.