Skip to content

Commit

Permalink
make FOREIGN_KEY_CHECKS PERSIST
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistedHardware committed Aug 3, 2022
1 parent f5c27a7 commit 70f0bda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func GetDB() *gorm.DB {
}

// Temp solution for 0 foreign key
db.Exec("SET FOREIGN_KEY_CHECKS=0;")
db.Exec("SET PERSIST FOREIGN_KEY_CHECKS=0;")
} else if strings.ToLower(Database.Type) == "postgres" {
// TODO: Add postgress support
}
Expand Down

0 comments on commit 70f0bda

Please sign in to comment.