-
-
Notifications
You must be signed in to change notification settings - Fork 525
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
Specify array type with model:create #155
Comments
Yeah you are right. There is currently no way of doing this. Want to give it a try? |
Looks like this issue is still valid so I gave it a try 😊 |
Added by #589, Thanks @link-alex |
Display problems that have not yet been submitted
So, how can I use this in sequelize cli? I am not able to migrate. There is no documentation I could find after about 3 hours of search. |
yeah guys the docs for the cli are impossible to find pls fix |
For anyone stuck on this, the syntax is like: ^docs would be great for this! |
As far as I can tell, there is no way to assign types to arrays using model:create. The syntax could be pretty simple:
sequelize model create --name Model --attributes 'info:array:string'
. Currently, this will pass, but just create an attribute that is an Array type. Without a type specified for the array, however,db:migrate
fails.Sorry if there is already a means for doing this: if so, I didn't see it after perusing the codebase.
The text was updated successfully, but these errors were encountered: