2016-10-03 13:31:29 +01:00
|
|
|
import co from 'co';
|
|
|
|
import models from '../models';
|
|
|
|
|
|
|
|
import debugname from 'debug';
|
|
|
|
const debug = debugname('match.audio:db');
|
|
|
|
|
2018-04-30 22:20:01 +01:00
|
|
|
co(async function sync() {
|
2016-10-03 13:31:29 +01:00
|
|
|
debug('Syncing schema');
|
2018-04-30 22:20:01 +01:00
|
|
|
await models.sequelize.sync();
|
2016-10-03 13:31:29 +01:00
|
|
|
debug('Schema synced');
|
|
|
|
});
|