Closed athenawisdoms closed 4 years ago
Thanks for your feedback, maybe it's a bug. I will fix it as soon as possible.
@athenawisdoms Hi, I have fixed this issue and published the new version sequelize-automate@1.1.1
. You can reinstall the package and try again.
It's caused by the indexes of PostgreSQL. I use queryInterface.showIndex()
(a sequelize method) to get all indexes
of a table, but the results are different of different database dialects. For example, the results of MySQL have a type
property, but PostgreSQL dose not. And I pass type
to t.identifier('type')
, so that I can generate an identifier of AST. While type
is undefined, t.identifier
throw that error: TypeError: Property value expected type of string but got null
.
If you have any problem, please let me know.
Perfect, everything's working for me now. Thank you for the very fast fix!
Hi,
Firstly, thank you for this wonderful (and updated) work!
I am encountering an error when I try to use
sequelize-automate
(v1.0.1, installed globally) in the terminal on a database which has an existing table with no rows. However, it is failing with an error and no model files are written to disk:Do you happen to know how we can solve this? I am new to Sequelize, please let me know if I left out any important information that is needed to troubleshoot this. Thanks!
System
Command used:
Entire output: