~emersion/sinwon

b23dd4c2d9db0fa47f82b5dbdd5d590e2bc41e59 — Simon Ser 6 months ago 841b30b
Turn on SQLite foreign keys
1 files changed, 1 insertions(+), 1 deletions(-)

M db.go
M db.go => db.go +1 -1
@@ 29,7 29,7 @@ type DB struct {
}

func openDB(filename string) (*DB, error) {
	sqlDB, err := sql.Open("sqlite3", filename+"?cache=shared")
	sqlDB, err := sql.Open("sqlite3", filename+"?cache=shared&_foreign_keys=1")
	if err != nil {
		return nil, err
	}