22 lines
473 B
JavaScript
22 lines
473 B
JavaScript
exports.up = async function(knex) {
|
|
await knex.schema.alterTable('alerts', (table) => {
|
|
table.json('meta');
|
|
});
|
|
|
|
await knex.schema.alterTable('stashes', (table) => {
|
|
table.text('comment');
|
|
table.json('meta');
|
|
});
|
|
};
|
|
|
|
exports.down = async function(knex) {
|
|
await knex.schema.alterTable('alerts', (table) => {
|
|
table.dropColumn('meta');
|
|
});
|
|
|
|
await knex.schema.alterTable('stashes', (table) => {
|
|
table.dropColumn('comment');
|
|
table.dropColumn('meta');
|
|
});
|
|
};
|