Skip to content

Commit

Permalink
fix: foreign keys support
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijit-hota committed May 19, 2022
1 parent b656326 commit 7269f05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ var db *sql.DB

func InitializeDB() (db *sql.DB) {
var err error
db, err = sql.Open("sqlite3", os.Getenv("DB_PATH"))
db, err = sql.Open("sqlite3", os.Getenv("DB_PATH")+"?foreign_keys=1")
utils.Must(err)

t := `
Expand Down

0 comments on commit 7269f05

Please sign in to comment.