From 834010982e062e72ecb35b8fee3a0e381507db90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Tue, 22 Dec 2020 10:39:50 +0100 Subject: [PATCH] fix: DROP schema before create --- test/e2e/helpers/database-init.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e/helpers/database-init.js b/test/e2e/helpers/database-init.js index fa3ab8093d..b6e1d4474d 100644 --- a/test/e2e/helpers/database-init.js +++ b/test/e2e/helpers/database-init.js @@ -76,6 +76,7 @@ module.exports = async function init(databaseSchema = 'test', getLogger) { const db = createDb(options); const eventBus = new EventEmitter(); + await db.raw(`DROP SCHEMA IF EXISTS ${options.databaseSchema} CASCADE`); await db.raw(`CREATE SCHEMA IF NOT EXISTS ${options.databaseSchema}`); await migrator(options); await db.destroy();