mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-15 08:56:21 +00:00
14 lines
343 B
JavaScript
14 lines
343 B
JavaScript
|
const config = require('../config.js');
|
||
|
const db = require('knex')(config.database);
|
||
|
|
||
|
const migration = {};
|
||
|
migration.start = async () => {
|
||
|
await db.schema.table('albums', table => {
|
||
|
table.dateTime('editedAt');
|
||
|
table.dateTime('zipGeneratedAt');
|
||
|
});
|
||
|
console.log('Migration finished! Now start lolisafe normally');
|
||
|
};
|
||
|
|
||
|
migration.start();
|