2018-06-02 15:50:39 +00:00
|
|
|
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');
|
2018-08-11 12:53:42 +01:00
|
|
|
process.exit();
|
2018-06-02 15:50:39 +00:00
|
|
|
});
|