boiawang / sequelize-db-export-import

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

Add initial sequelize migration file #10

Closed letusfly85 closed 6 years ago

letusfly85 commented 6 years ago

Summary:

./bin/seq-ei -i -H localhost -u root -p password -d database_name --output $PWD/migrations -m mysql -e js
shaunplumb commented 6 years ago

Just as a heads up I have added a few items in my pull request to the export for certain data types (decimal and enum) for it to work properly. You may want this added to your as well.

letusfly85 commented 6 years ago

@shaunplumb

Thank you, I want to get your two commits. Don't you create a PR? https://github.com/shaunplumb/sequelize-db-export-import/commits/master

https://github.com/shaunplumb/sequelize-db-export-import/commit/a250361effa47f0d7b988547f223707c09cbfd38 https://github.com/shaunplumb/sequelize-db-export-import/commit/3cffb92c5d8b54f5ee41476fddecdc7dc2ff06f3

boiawang commented 6 years ago

ci error

letusfly85 commented 6 years ago

@boiawang

ci error

Thank you for checking. I modified.

shaunplumb commented 6 years ago

If you look at line 126 of yours for the type of integer the other export has 2 new types added for enum and decimal that will help with the export. Not sure if you want to add that as well. Should be line 132-137 of the other export file.

letusfly85 commented 6 years ago

@shaunplumb

Thank you, I added two new types 👍

letusfly85 commented 6 years ago

@boiawang

Thank you !