🎨 Changed index table name in topic sqlite repository

This commit is contained in:
Maxim Lebedev 2023-12-20 07:19:24 +06:00
parent 785a86aa42
commit d2b975020d
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 1 additions and 1 deletions

View File

@ -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 + `;`