this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

only create table if it doesn't exist

+2 -1
+2 -1
database.go
··· 47 47 } 48 48 49 49 func createTable(db *sql.DB) { 50 - createFeedTableSQL := `CREATE TABLE feed ( 50 + createFeedTableSQL := `CREATE TABLE IF NOT EXISTS feed ( 51 51 "id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, 52 52 "uri" TEXT, 53 53 "userDID" TEXT ··· 61 61 } 62 62 _, err = statement.Exec() 63 63 if err != nil { 64 + if errors.Is(sql., target error) 64 65 bugsnag.Notify(fmt.Errorf("exec sql statement: %w", err)) 65 66 return 66 67 }