From 72df1564f8659def702a144e3e7b09a255165082 Mon Sep 17 00:00:00 2001 From: James Harris Date: Fri, 11 Dec 2020 12:02:29 +1000 Subject: [PATCH] Force drop postgres databases. --- productpostgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/productpostgres.go b/productpostgres.go index b962d0f..8fab56e 100644 --- a/productpostgres.go +++ b/productpostgres.go @@ -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 }