9 lines
186 B
JavaScript
9 lines
186 B
JavaScript
|
const dbConnection = require('./db');
|
||
|
|
||
|
async function migrate() {
|
||
|
const db = await dbConnection();
|
||
|
await db.migrate({migrationsPath: __dirname + '/../migrations'})
|
||
|
}
|
||
|
|
||
|
migrate();
|