fix: enable foreign key enforcement in fuzz DB
This commit is contained in:
1 parent
2f964b0c79
commit
542913cbef
1 file changed
+4
@@ -27,5 +27,9 @@ func GetFuzzDB() (*gorm.DB, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if execErr := db.Exec("PRAGMA foreign_keys = ON").Error; execErr != nil {
|
||||
return nil, execErr
|
||||
}
|
||||
|
||||
return db, nil
|
||||
}
|
||||
Reference in new issue
Block a user