mirror of
https://gitlab.com/Alamantus/Readlebee.git
synced 2025-04-29 14:53:03 +02:00
- Split models & associations into their own files - Update columns and requirements - Create PermissionLevel model & add to relevant models
17 lines
No EOL
303 B
JavaScript
17 lines
No EOL
303 B
JavaScript
const path = require('path');
|
|
const fs = require('fs');
|
|
|
|
const dbVersion = '0.0.0';
|
|
|
|
function migrateDb(oldVersion, sequelize) {
|
|
const models = sequelize.models;
|
|
// if (oldVersion < targetVersion) {
|
|
// migrate db here
|
|
// }
|
|
return sequelize;
|
|
}
|
|
|
|
module.exports = {
|
|
dbVersion,
|
|
migrateDb,
|
|
}; |