Add referential integrity to player and playlist tables

This commit is contained in:
Deluan
2020-06-08 17:29:09 -04:00
committed by Deluan Quintão
parent c9bcb333ae
commit 94d88395e7
6 changed files with 142 additions and 5 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ func Db() *sql.DB {
var err error
Path = conf.Server.DbPath
if Path == ":memory:" {
Path = "file::memory:?cache=shared"
Path = "file::memory:?cache=shared&_foreign_keys=on"
conf.Server.DbPath = Path
}
log.Debug("Opening DataBase", "dbPath", Path, "driver", Driver)