AppReports/migrations/00001-reduction.js
Timo Hocker f57444a3d1
All checks were successful
continuous-integration/drone/push Build is passing
reduction job, chart duplicates
2020-08-25 15:24:20 +02:00

23 lines
386 B
JavaScript

'use strict';
const defaults = require ('../lib/defaults');
async function up (knex) {
await knex.schema.table ('app', (t) => {
t.string ('reduction');
});
await knex.schema.table ('log', (t) => {
t.integer ('reduction');
});
await knex ('app')
.update ({ reduction: defaults.app.reduction });
}
function down () {
// noop
}
module.exports = { up, down };