forked from MirrorHub/mautrix-whatsapp
Disable SQLite foreign keys. Fixes #360
This commit is contained in:
parent
7218f9ad76
commit
db44ef2b36
1 changed files with 0 additions and 4 deletions
|
@ -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"),
|
||||
|
|
Loading…
Reference in a new issue