Comments (7)
Same issue here
from sequelize-auto-migrations.
Similiar to this, if you upgrade to the latest version of sequelize, this package will not work when you perform a migration. You will get something like the error below when running the migrate command
node ./node_modules/sequelize-auto-migrations/bin/makemigration.js --name tmp -x
/Users/tjohnson/Public/repos/scottsdale-event/node_modules/sequelize-auto-migrations/lib/migrate.js:452
let options = currentState[tableName].schema[df.path[2]];
^
TypeError: Cannot read property 'undefined' of undefined
at Object.parseDifference (/Users/tjohnson/Public/repos/scottsdale-event/node_modules/sequelize-auto-migrations/lib/migrate.js:452:65)
at Object.<anonymous> (/Users/tjohnson/Public/repos/scottsdale-event/node_modules/sequelize-auto-migrations/bin/makemigration.js:78:23)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:742:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:743:3)
error Command failed with exit code 1.
from sequelize-auto-migrations.
Is there any alternative for this package?
from sequelize-auto-migrations.
Not that I'm aware of :(
from sequelize-auto-migrations.
Well, that sucks. I found this package which is pretty nice, it basically transforms your already existing database into models.
Sadly it doesn't auto update the DB when I change the models, but at least it's way better than doing things from ground zero.
from sequelize-auto-migrations.
I got empty table's column in migration script when run makemigration, occurs in sequelize 5.8.11
params: [
"account",
{
},
{}
]
from sequelize-auto-migrations.
@nvcken did you solve this issue ?
from sequelize-auto-migrations.
Related Issues (20)
- addColumn/removeColumn do not support schemas other than public
- Does not pick up model details with Sequelize 5.x installed HOT 8
- How to migrate to production HOT 1
- migrate.js crash on index change
- Sequelize.CITEXT generates Sequelize.undefined - add support for CITEXT HOT 1
- Wrap migrations in transaction HOT 3
- 'No changes found' for first migration HOT 4
- Does not recognize custom folder position HOT 3
- Is this package dead? HOT 9
- Get empty params when makemigration HOT 4
- Release New Version on NPM
- Add support for column type JSON
- Doesn't generate field information HOT 7
- Class constructor cannot be invoked without new
- db:makemigrations not working HOT 6
- runmigration fails with UNIQUE KEY `PRIMARY` index
- Is it possible to tell the package where to look for the models folder? HOT 1
- NEW MAINTAINER - active fork, new repo name, & plans HOT 3
- Create SequelizeMeta table error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sequelize-auto-migrations.