We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7e7072a + 8f6b20f commit 320b914Copy full SHA for 320b914
database/seed.go
@@ -21,7 +21,7 @@ func MustApplyDatabaseSeed(file string, db *gorm.DB) {
21
result := struct {
22
Rows uint64
23
}{}
24
- if err := db.Raw(applySeedCheckSQL).Scan(&result).Error; err != nil {
+ if err := db.Raw(applySeedCheckSQL, db.Migrator().CurrentDatabase()).Scan(&result).Error; err != nil {
25
panic(fmt.Errorf("failed to check whether seed should be applied: %w", err))
26
}
27
0 commit comments