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:
parent
240c6a77a1
commit
a6eb64e5da
@ -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 },
|
||||
|
Loading…
Reference in New Issue
Block a user