Skip to content

Commit

Permalink
remove with force when dropping database
Browse files Browse the repository at this point in the history
  • Loading branch information
pascal-fischer committed Jan 19, 2025
1 parent 4697879 commit 83c1070
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion management/server/store/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -429,7 +429,7 @@ func createRandomDB(dsn string, db *gorm.DB, cleanUp func(), removeContainer boo
u.Path = dbName

cleanup := func() {
db.Exec(fmt.Sprintf("DROP DATABASE %s WITH (FORCE)", dbName))
db.Exec(fmt.Sprintf("DROP DATABASE %s", dbName))
sqlDB, _ := db.DB()
_ = sqlDB.Close()
if cleanUp != nil && removeContainer {
Expand Down

0 comments on commit 83c1070

Please sign in to comment.