boiawang / sequelize-db-export-import

Generater models from mysql db or import tables from models files
MIT License
26 stars 8 forks source link

Added functionality to decimal export for precision and size. #9

Closed shaunplumb closed 6 years ago

shaunplumb commented 6 years ago

When using sequelize to import with the DB objects created by the export the decimal would default to DECIMAL(10,0) and have no precision for decimal places. This will fix the export of the decimal object to export DECIMAL(9,2) rather than just DECIMAL. DECIMAL(9,2) is just an example of the use case required for precision.

shaunplumb commented 6 years ago

I added functionality for ENUM data type exporting for the export to work