From b27038a59cf77618664b597fec32b285d0c5611f Mon Sep 17 00:00:00 2001 From: Ilya Chernishev Date: Sun, 15 Feb 2026 13:08:40 +0300 Subject: [PATCH] Execute SQL statement to create table in database --- internal/storage/db.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/storage/db.go b/internal/storage/db.go index 90edc43..e1d2a45 100644 --- a/internal/storage/db.go +++ b/internal/storage/db.go @@ -45,6 +45,7 @@ func initDB(dsn, sqlstr string) (err error) { err = errors.Join(err, fmt.Errorf("failed to close %q: %w", dsn, closeErr)) } }() + _, err = db.Exec(sqlstr) if err != nil { return fmt.Errorf("failed to create table: %w", err) }