Skip to content

Commit

Permalink
Merge pull request #35 from G8XSU/fix_creation_time_index
Browse files Browse the repository at this point in the history
Create index on creation_time only if it doesn't exist.
  • Loading branch information
arik-so authored Dec 12, 2024
2 parents 40f6bcd + 54cf951 commit 5840bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ldk-server/src/io/sqlite_store/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl SqliteStore {
})?;

let index_creation_time_sql = format!(
"CREATE INDEX idx_creation_time ON {} (creation_time);",
"CREATE INDEX IF NOT EXISTS idx_creation_time ON {} (creation_time);",
paginated_kv_table_name
);

Expand Down

0 comments on commit 5840bad

Please sign in to comment.