Skip to content

Commit 5840bad

Browse files
authored
Merge pull request #35 from G8XSU/fix_creation_time_index
Create index on creation_time only if it doesn't exist.
2 parents 40f6bcd + 54cf951 commit 5840bad

File tree

1 file changed

+1
-1
lines changed
  • ldk-server/src/io/sqlite_store

1 file changed

+1
-1
lines changed

ldk-server/src/io/sqlite_store/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl SqliteStore {
9696
})?;
9797

9898
let index_creation_time_sql = format!(
99-
"CREATE INDEX idx_creation_time ON {} (creation_time);",
99+
"CREATE INDEX IF NOT EXISTS idx_creation_time ON {} (creation_time);",
100100
paginated_kv_table_name
101101
);
102102

0 commit comments

Comments
 (0)