reduction job, chart duplicates
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
22
migrations/00001-reduction.js
Normal file
22
migrations/00001-reduction.js
Normal file
@ -0,0 +1,22 @@
|
||||
'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 };
|
Reference in New Issue
Block a user