From a6eb64e5da7b873e7e7625f1ade9aa4134da7e66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Thu, 22 Apr 2021 10:25:18 +0200 Subject: [PATCH] fix: use db config with schema for db-migrate --- src/migrator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/migrator.js b/src/migrator.js index ef3d0e6921..fae2ec0259 100644 --- a/src/migrator.js +++ b/src/migrator.js @@ -4,8 +4,8 @@ require('db-migrate-shared').log.setLogLevel('error'); const { getInstance } = require('db-migrate'); -function migrateDb({ db, databaseSchema = 'public' }) { - const custom = { ...db, schema: databaseSchema }; +function migrateDb({ db }) { + const custom = { ...db }; const dbmigrate = getInstance(true, { cwd: __dirname, config: { custom },