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

Specifying string length does not appear to generate proper schema (sqlite3) #3

Closed
taicho opened this issue Mar 29, 2017 · 3 comments
Closed
Assignees
Labels

Comments

@taicho
Copy link

taicho commented Mar 29, 2017

If using the "@column" attribute with DataType.String(someLength) the model does not appear to generate the correct schema and instead generates a column in the sqlite database with an incorrect "[object Object]" column type, very bizarre. I've tried using @column({type: DataType.String(someLength)}) and have used the raw Sequelize.STRING type as well. With no arguments the column generates properly with a VARCHAR(255) data type but when length is specified it does not appear to work. Thoughts?

@RobinBuschmann
Copy link
Member

This is a bug, thank you for reporting. I will solve this tomorrow morning.

@RobinBuschmann
Copy link
Member

@taicho It should work now. I published a new version to npm: sequelize-typescript@0.2.1.

@taicho
Copy link
Author

taicho commented Mar 30, 2017

@RobinBuschmann can confirm works like a charm now! Thanks for such a quick fix.

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

2 participants