From 54cf951bfa59b5e476fd7fdf67c94f47beb3ba03 Mon Sep 17 00:00:00 2001 From: G8XSU <3442979+G8XSU@users.noreply.github.com> Date: Wed, 11 Dec 2024 15:30:22 -0800 Subject: [PATCH] Create index on creation_time only if it doesn't exist. Since index creation will fail if index already exists. --- ldk-server/src/io/sqlite_store/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ldk-server/src/io/sqlite_store/mod.rs b/ldk-server/src/io/sqlite_store/mod.rs index cee2bae..e63f54f 100644 --- a/ldk-server/src/io/sqlite_store/mod.rs +++ b/ldk-server/src/io/sqlite_store/mod.rs @@ -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 );