Timo Hocker
f57444a3d1
All checks were successful
continuous-integration/drone/push Build is passing
23 lines
386 B
JavaScript
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 };
|