The _foreign_keys=1 syntax is widely supported but the _fk=1 alias for
it was only added in version 1.8.0 of the sqlite3 driver. Avoid using
the alias for the time being (the freeze is near).
Gbp-Pq: Name 0002-add-compatibility-for-older-sqlite-driver.patch
return &Client{}, fmt.Errorf("unable to set perms on %s: %v", config.DbPath, err)
}
}
- client, err = ent.Open("sqlite3", fmt.Sprintf("file:%s?_busy_timeout=100000&_fk=1", config.DbPath))
+ client, err = ent.Open("sqlite3", fmt.Sprintf("file:%s?_busy_timeout=100000&_foreign_keys=1", config.DbPath))
if err != nil {
return &Client{}, fmt.Errorf("failed opening connection to sqlite: %v", err)
}