migration.js 341 B

12345678910111213
  1. const config = require('../config.js');
  2. const db = require('knex')(config.database);
  3. const migration = {};
  4. migration.start = async () => {
  5. await db.schema.table('albums', table => {
  6. table.integer('editedAt');
  7. table.integer('zipGeneratedAt');
  8. });
  9. console.log('Migration finished! Now start lolisafe normally');
  10. };
  11. migration.start();