GithubHelp home page GithubHelp logo

Comments (7)

goalia avatar goalia commented on May 12, 2024

Same issue here

from sequelize-auto-migrations.

tsjohns9 avatar tsjohns9 commented on May 12, 2024

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.

saulojoab avatar saulojoab commented on May 12, 2024

Is there any alternative for this package?

from sequelize-auto-migrations.

staadecker avatar staadecker commented on May 12, 2024

Not that I'm aware of :(

from sequelize-auto-migrations.

saulojoab avatar saulojoab commented on May 12, 2024

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.

nvcken avatar nvcken commented on May 12, 2024

I got empty table's column in migration script when run makemigration, occurs in sequelize 5.8.11

        params: [
            "account",
            {

            },
            {}
        ]

@staadecker

from sequelize-auto-migrations.

BugKiller-tech avatar BugKiller-tech commented on May 12, 2024

@nvcken did you solve this issue ?

from sequelize-auto-migrations.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.