mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 08:26:22 +00:00
bcdfcd7064
* Switched ESLint + Aqua to Standard. I'm a big fan of Standard. Updated yarn.lock file too. * Lots of refactors to follow the rules of Standard. * Fixed issue with uploading as a not logged in user.
14 lines
341 B
JavaScript
14 lines
341 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()
|