'use strict'; const path = require('path'); const Promise = require('bluebird'); let app = require(path.resolve(__dirname, '../server')); let ds = app.datasources.mariadb_local; ds.automigrate() .then(function(){ console.log('Done.'); process.exit(); });