delete pragma fk (use build --tag "foreign_key")

This commit is contained in:
sentriz
2019-06-12 11:00:12 +01:00
parent 827c463255
commit 33476aa77f
2 changed files with 0 additions and 2 deletions

View File

@@ -36,7 +36,6 @@ func main() {
log.Fatalf("error opening database: %v\n", err)
}
db.SetLogger(log.New(os.Stdout, "gorm ", 0))
db.Exec("PRAGMA foreign_keys = ON")
s := scanner.New(
db,
*musicPath,

View File

@@ -46,7 +46,6 @@ func main() {
if err != nil {
log.Fatalf("error opening database: %v\n", err)
}
db.Exec("PRAGMA foreign_keys = ON")
s := server.New(
db,
*musicPath,