Disable SQLite foreign keys. Fixes #360

This commit is contained in:
Tulir Asokan 2021-11-02 12:57:05 +02:00
parent 7218f9ad76
commit db44ef2b36

View file

@ -49,10 +49,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"),