This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Zaimki/server/migrate.js

10 lines
208 B
JavaScript
Raw Permalink Normal View History

2020-10-12 02:46:26 -07:00
const dbConnection = require('./db');
async function migrate() {
const db = await dbConnection();
await db.migrate({migrationsPath: __dirname + '/../migrations'})
2021-05-18 09:23:52 -07:00
await db.close();
2020-10-12 02:46:26 -07:00
}
migrate();