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

Enum support #550

Closed
sushantdhiman opened this issue Sep 21, 2017 · 4 comments
Closed

Enum support #550

sushantdhiman opened this issue Sep 21, 2017 · 4 comments
Labels

Comments

@sushantdhiman
Copy link
Contributor

It should be possible to create enum values from model:create command

$ sequelize model:create --name User --attributes opts:enum(x,y,z)
@JamesTheHacker
Copy link

I attempted to start. One of the problems is the use of commas in the enum(x,y,z). Without some wizardry it's going to be difficult to parse them because attributes are already split using ,. Also underscore's templates are awful to read/modify.

If you don't mind I'd like to take this one on.

@wjrjerome
Copy link

Hi @JamesTheHacker
Any updates on this?

@Keydex
Copy link

Keydex commented Apr 10, 2018

Looking for an update on this as well.

@cevinlo23
Copy link

Has there been any update on this issue?

mkly added a commit to mkly/cli that referenced this issue Oct 22, 2018
Add support for `model:generate --name User role:enum:{Admin, Guest}`

Closes sequelize#550
mkly added a commit to mkly/cli that referenced this issue Oct 22, 2018
Add support for `model:generate --name User role:enum:{Admin, Guest}`

Closes sequelize#550
codetriage-readme-bot pushed a commit to codetriage-readme-bot/cli that referenced this issue Jun 5, 2019
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

5 participants