Coder Social home page Coder Social logo

Comments (6)

ephys avatar ephys commented on June 12, 2024 1

We're actually planning on rewriting the CLI from scratch, so it's unlikely that we'll do much on this repository anymore

from cli.

ephys avatar ephys commented on June 12, 2024

Moved to the CLI repo because the core library is not aware of the migrations (it is entirely a cli concern). We could definitely add a cli subcommand that checks this, that you could use in your start command

from cli.

ephys avatar ephys commented on June 12, 2024

This is strongly related to the --dry-run flag: #219

from cli.

svkrclg avatar svkrclg commented on June 12, 2024

No, IMO. I'm talking about a logic that will terminate the app during bootup when there is a pending migration.

from cli.

ephys avatar ephys commented on June 12, 2024

This is something you'll need to run before you boot your app and decide whether the app may boot based on the exit status of the cli. The core library, which you use in your app, has no knowledge of migrations. This is because you can use any migration tool, you're not limited to the sequelize cli.

Alternatively you can use child_process.exec to run the relevant cli command from inside your app.

Depending on how --dry-run is designed, it could cover both use cases. I did say "strongly related", not "the same as", we could also decide to go for a --check-no-pending-migrations flag or similar.

from cli.

svkrclg avatar svkrclg commented on June 12, 2024

Thanks for explanation and it make sense now. Should I start working on this feature?

from cli.

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.