Skip to content

Commit

Permalink
Disable SQLite foreign keys
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Nov 2, 2021
1 parent 91e1c54 commit 4d69480
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ func New(dbType string, uri string, baseLog log.Logger) (*Database, error) {
return nil, err
}

if dbType == "sqlite3" {
_, _ = conn.Exec("PRAGMA foreign_keys = ON")
}

db := &Database{
DB: conn,
log: baseLog.Sub("Database"),
Expand Down

0 comments on commit 4d69480

Please sign in to comment.