How to use migrations - 1 common examples

To help you get started, we’ve selected a few migrations examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github paralect / koa-api-starter / src / migrator.js View on Github external
require('app-module-path').addPath(__dirname);

const config = require('config');
const migrator = require('migrations/migrator');


if (!config.isTest) {
  migrator.exec();
}

migrations

Data agnostic migrations

MIT
Latest version published 25 days ago

Package Health Score

73 / 100
Full package analysis

Popular migrations functions