Git Product home page Git Product logo

Comments (7)

balmasi avatar balmasi commented on September 26, 2024

@ertanden that's a good insight. I guess I'll have to separate the return value between the CLI usage and the API usage

from migrate-mongoose.

river-jade avatar river-jade commented on September 26, 2024

Here's a pull-request: #20

from migrate-mongoose.

rkmax avatar rkmax commented on September 26, 2024

Hi Guys did you plan to merge the #20 I want to use this on my CI, currently my workaround is:

"migrate": "migrate up || exit 0"

from migrate-mongoose.

gunar avatar gunar commented on September 26, 2024

@rkmax The problem with that is that it won't know when the migration actually failed.

from migrate-mongoose.

keenahn avatar keenahn commented on September 26, 2024

screen shot 2017-09-20 at 23 29 42

Don't hold your breath, looks like this project is abandoned

from migrate-mongoose.

balmasi avatar balmasi commented on September 26, 2024

Fixed in 4.0.0 thank you, everyone for your contributions!

from migrate-mongoose.

Parnswir avatar Parnswir commented on September 26, 2024

This still seems to be broken. I have this in my package.json:

"dependencies": {
  "migrate-mongoose": "^4.0.0"
},
"scripts": {
  "migration": "migrate"
},

So that I can run npm run migration up, etc. However, up still fails with exit status 1 if there are no migrations:

> npm run migration up

Synchronizing database with file system migrations...
There are no pending migrations.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] migration: `migrate "up"`
npm ERR! Exit status 1

Am I missing something here?

EDIT:
Windows also reports exist status 1:

$ node_modules\.bin\migrate up
Synchronizing database with file system migrations...
There are no pending migrations.

$ echo %errorlevel%
1

Node v10.15.2

from migrate-mongoose.

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.