Cli: Bug passing parameters to umzug

Created on 1 Aug 2018  路  2Comments  路  Source: sequelize/cli

What are you doing?

Configuring sequelize client for migrations, using a .sequelizerc file that looks like this:

const path = require('path');

module.exports = {
  'config': path.resolve('migrations/config'),
  'migrations-path': path.resolve('migrations'),
  'seeders-path': path.resolve('migrations/seeders'),
  'models-path': path.resolve('migrations/models')
};

What do you expect to happen?

This should work without alerts.

What is actually happening?

It's throwing warnings
image 2018-07-30 at 11 43 25 am
Related to this line in umzug https://github.com/sequelize/umzug/blob/3f7c126bedd81e5572721e00282644112cc2d2a7/src/index.js#L471

Looks like you are not passing config.js and model.js to umzug, but just passing config and models, which does not match the expected pattern.

Dialect: postgres
Sequelize version: v4.38.0
Tested with latest release: Yes

stale

Most helpful comment

Hello, its been 16 day with this question opened, would you guys consider helping us with some answers?

All 2 comments

Hello, its been 16 day with this question opened, would you guys consider helping us with some answers?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

papb picture papb  路  5Comments

PavelPolyakov picture PavelPolyakov  路  5Comments

TomerRon picture TomerRon  路  3Comments

KaltZK picture KaltZK  路  5Comments

rmoura-92 picture rmoura-92  路  4Comments