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

Filename printed for model:generate doesn't match path on disk #663

Closed
aguynamedben opened this issue Jun 20, 2018 · 3 comments
Closed

Filename printed for model:generate doesn't match path on disk #663

aguynamedben opened this issue Jun 20, 2018 · 3 comments
Labels

Comments

@aguynamedben
Copy link

What you are doing?

Generating a model using model:generate

$ node_modules/.bin/sequelize model:generate --name Doc --attributes id:uuid:primary,upstream_id:string,domain:string,source:string,title:string,url:string

image

What do you expect to happen?

The filename in the output text to end with -create-doc.js (what's actually written to disk)

What is actually happening?

The filename in the output text ended with -Doc.js (that file doesn't exist!)

Dialect: sqlite
Database version: 3.24.0 2018-06-04 19:24:41 c7ee0833225bfd8c5ec2f9bf62b97c4e04d03bd9566366d5221ac8fb199a87ca
Sequelize CLI version: sequelize-cli@4.0.0
Sequelize version: sequelize@4.37.10

@aguynamedben aguynamedben changed the title Filename printed for model:generate doesn't Filename printed for model:generate doesn't match path on disk Jun 20, 2018
@aguynamedben
Copy link
Author

BTW, thanks for this great library, I'm new to it and finding it very useful 🙏

adeelhussain added a commit to adeelhussain/cli that referenced this issue Jun 27, 2018
Fixed the bug, filename printed for model:generate doesn't match path on disk sequelize#663
@adeelhussain
Copy link

@sushantdhiman I have created a PR for this issue, can you please have a look?
#669

@sushantdhiman
Copy link
Contributor

Fixed by c4e53b1

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

3 participants