12 lines
240 B
JavaScript
12 lines
240 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');
|
||
|
});
|