Skip to content

Commit

Permalink
Force drop postgres databases.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalloc committed Dec 11, 2020
1 parent c9336fa commit 72df156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion productpostgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ func (PostgresCompatibleProduct) DropDatabase(
db *sql.DB,
name string,
) error {
_, err := db.ExecContext(ctx, `DROP DATABASE IF EXISTS "`+name+`"`)
_, err := db.ExecContext(ctx, `DROP DATABASE IF EXISTS "`+name+`" WITH (FORCE)`)
return err
}

0 comments on commit 72df156

Please sign in to comment.