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

Place _current.json in the migrations directory breaks sequelize-cli migration #12

Open
Axure opened this issue Dec 1, 2017 · 1 comment

Comments

@Axure
Copy link

Axure commented Dec 1, 2017

When you run sequelize db:migrate, it would reject with

File: _current.json does not match pattern: /\.js$/
File: meta does not match pattern: /\.js$/

Placing the file in another directory, even a subdirectory of the migrations folder would solve this problem.

@marceliwac
Copy link

Sequelize seems to be using the RegEx /\.js$/ now to match the migration files, which eliminatest the problem. The current NPM-published version still generates the _current.json file, but this issue can be closed now anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants