diff --git a/main.go b/main.go index 376fb06..c807064 100644 --- a/main.go +++ b/main.go @@ -18,8 +18,10 @@ var db *sqlite3.Conn func initDb() error { var err error - /* Not necessary because I am currently saving the db in memory - sqlstmt := ` + var sqlstmt string + + // Not really necessary because I am currently saving the db in memory + sqlstmt = ` DROP TABLE IF EXISTS artists; DROP TABLE IF EXISTS websites; DROP TABLE IF EXISTS links; @@ -28,9 +30,8 @@ func initDb() error { if err != nil { log.Fatal(err) } - */ - sqlstmt := ` + sqlstmt = ` CREATE TABLE IF NOT EXISTS artists ( id integer NOT NULL CONSTRAINT artists_pk PRIMARY KEY AUTOINCREMENT, name text NOT NULL