filesafe/database/migration.js

14 lines
341 B
JavaScript
Raw Normal View History

const config = require('../config.js');
const db = require('knex')(config.database);
const migration = {};
migration.start = async () => {
await db.schema.table('albums', table => {
2018-04-04 22:38:15 +00:00
table.integer('editedAt');
table.integer('zipGeneratedAt');
});
console.log('Migration finished! Now start lolisafe normally');
};
migration.start();