analyse-parrainages/server/tools/autoupdate.js

14 lines
262 B
JavaScript

'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();
});