Giter VIP home page Giter VIP logo

boco-migrate's People

Contributors

christianbradley avatar

Watchers

 avatar  avatar  avatar  avatar

boco-migrate's Issues

Random MigrationNotFound errors while migrating after adding new migrations

Using RedisAdapter

/bin/boco-migrate migrate 002                                                                                                             ✱ ◼
Potentially unhandled rejection [1] MigrationNotFound: Migration not found
    at Migrator.findMigrationIndexById (/Users/christianbradley/src/boco-delphi-v2/node_modules/boco-migrate/build/index.js:300:15)
    at Migrator.migrate (/Users/christianbradley/src/boco-delphi-v2/node_modules/boco-migrate/build/index.js:347:30)
    at CLI.migrate (/Users/christianbradley/src/boco-delphi-v2/node_modules/boco-migrate/build/index.js:472:23)
    at /Users/christianbradley/src/boco-delphi-v2/node_modules/boco-migrate/build/index.js:573:28
    at tryCatchReject (/Users/christianbradley/src/boco-delphi-v2/node_modules/when/lib/makePromise.js:845:30)
    at runContinuation1 (/Users/christianbradley/src/boco-delphi-v2/node_modules/when/lib/makePromise.js:804:4)
    at Fulfilled.when (/Users/christianbradley/src/boco-delphi-v2/node_modules/when/lib/makePromise.js:592:4)
    at Pending.run (/Users/christianbradley/src/boco-delphi-v2/node_modules/when/lib/makePromise.js:483:13)
    at Scheduler._drain (/Users/christianbradley/src/boco-delphi-v2/node_modules/when/lib/Scheduler.js:62:19)
    at Scheduler.drain (/Users/christianbradley/src/boco-delphi-v2/node_modules/when/lib/Scheduler.js:27:9)
    at doNTCallback0 (node.js:417:9)
    at process._tickCallback (node.js:346:13)

RedisStorageAdapter: Error: SET value must not be undefined or null

Looks like the RedisStorageAdapter needs to change how it sets the value when latestMigrationId is null

Stack:

boco-delphi-v2/node_modules/boco-migrate/build/index.js:510
          throw error;
          ^

Error: send_command: SET value must not be undefined or null
    at RedisClient.send_command (/Users/christianbradley/src/boco-delphi-v2/node_modules/redis/index.js:746:19)
    at RedisClient.(anonymous function).RedisClient.(anonymous function) (/Users/christianbradley/src/boco-delphi-v2/node_modules/redis/index.js:969:25)
    at RedisStorageAdapter.setLatestMigrationId (/Users/christianbradley/src/boco-delphi-v2/node_modules/boco-migrate/build/index.js:206:31)
    at /Users/christianbradley/src/boco-delphi-v2/node_modules/boco-migrate/build/index.js:387:39
    at tryCatcher (/Users/christianbradley/src/boco-delphi-v2/node_modules/bluebird/js/main/util.js:26:23)
    at Promise.successAdapter (/Users/christianbradley/src/boco-delphi-v2/node_modules/bluebird/js/main/nodeify.js:23:30)
    at Promise._settlePromiseAt (/Users/christianbradley/src/boco-delphi-v2/node_modules/bluebird/js/main/promise.js:579:21)
    at Promise._settlePromises (/Users/christianbradley/src/boco-delphi-v2/node_modules/bluebird/js/main/promise.js:697:14)
    at Async._drainQueue (/Users/christianbradley/src/boco-delphi-v2/node_modules/bluebird/js/main/async.js:123:16)
    at Async._drainQueues (/Users/christianbradley/src/boco-delphi-v2/node_modules/bluebird/js/main/async.js:133:10)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/christianbradley/src/boco-delphi-v2/node_modules/bluebird/js/main/async.js:15:14)
    at processImmediate [as _immediateCallback] (timers.js:368:17)

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.