2019-12-08 08:06:21 +01:00
|
|
|
const path = require('path');
|
|
|
|
const fs = require('fs');
|
|
|
|
|
|
|
|
const dbVersion = '0.0.0';
|
|
|
|
|
|
|
|
function migrateDb(oldVersion, sequelize) {
|
2020-01-14 23:26:39 +01:00
|
|
|
const models = sequelize.models;
|
2019-12-08 08:06:21 +01:00
|
|
|
// if (oldVersion < targetVersion) {
|
|
|
|
// migrate db here
|
|
|
|
// }
|
|
|
|
return sequelize;
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
dbVersion,
|
|
|
|
migrateDb,
|
|
|
|
};
|