From d2b975020d670f464e3355e051b4cf57cfe67eee Mon Sep 17 00:00:00 2001 From: Maxim Lebedev Date: Wed, 20 Dec 2023 07:19:24 +0600 Subject: [PATCH] :art: Changed index table name in topic sqlite repository --- internal/topic/repository/sqlite/sqlite_topic.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/topic/repository/sqlite/sqlite_topic.go b/internal/topic/repository/sqlite/sqlite_topic.go index fd6db91..c9873a4 100644 --- a/internal/topic/repository/sqlite/sqlite_topic.go +++ b/internal/topic/repository/sqlite/sqlite_topic.go @@ -52,7 +52,7 @@ const ( content_type TEXT, content BLOB )` - queryIndex string = `CREATE INDEX urls ON ` + table + ` (url);` + queryIndex string = `CREATE INDEX idx_topic ON ` + table + ` (url);` queryCreate string = `INSERT INTO ` + table + ` (created_at, updated_at, url, content_type, content) VALUES (:created_at, :updated_at, :url, :content_type, :content);` queryFetch string = `SELECT * FROM ` + table + `;`