Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migration:create reports that it successfully created migrations folder even though it already exists #569

Closed
gabegorelick opened this issue Oct 13, 2017 · 2 comments
Labels

Comments

@gabegorelick
Copy link

What you are doing?

I have the following in my .sequelizerc:

const path = require('path');

module.exports = {
    'migrations-path': path.resolve(__dirname, 'migrations')
};

Running sequelize migration:create --name foo reports that it "Successfully created migrations folder at ...", even though the folder already exists.

What do you expect to happen?

Not output this message. Or output a message about how it's using the existing directory.

What is actually happening?

Migrations is created correctly, but the log message is misleading.

Dialect: any
Database version: any
Sequelize CLI version: 3.0.0
Sequelize version: 4.13.5

@sushantdhiman
Copy link
Contributor

#592 fixed it, but I would like to keep this open until I add more tests

@stale
Copy link

stale bot commented Jun 21, 2020

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.

@stale stale bot added the stale label Jun 21, 2020
@stale stale bot closed this as completed Jun 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants