Skip to content

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

Closed
@aguynamedben

Description

@aguynamedben

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

Activity

changed the title [-]Filename printed for model:generate doesn't [/-] [+]Filename printed for model:generate doesn't match path on disk[/+] on Jun 20, 2018
aguynamedben

aguynamedben commented on Jun 20, 2018

@aguynamedben
Author

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

adeelhussain

adeelhussain commented on Jul 4, 2018

@adeelhussain

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

sushantdhiman

sushantdhiman commented on Jun 21, 2020

@sushantdhiman
Contributor

Fixed by c4e53b1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @aguynamedben@adeelhussain@sushantdhiman

        Issue actions

          Filename printed for model:generate doesn't match path on disk · Issue #663 · sequelize/cli