1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

fix: use db config with schema for db-migrate

This commit is contained in:
Ivar Conradi Østhus 2021-04-22 10:25:18 +02:00
parent 240c6a77a1
commit a6eb64e5da
No known key found for this signature in database
GPG Key ID: 31AC596886B0BD09

View File

@ -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 },