hostr/test/initdb.js
2018-08-11 12:53:42 +01:00

12 lines
258 B
JavaScript

import co from 'co';
import models from '../models';
import debugname from 'debug';
const debug = debugname('hostr:db');
co(async function sync() {
debug('Syncing schema');
await models.sequelize.sync();
debug('Schema synced');
process.exit();
});