forked from DebaucheryLibrarian/traxxx
29 lines
604 B
JavaScript
29 lines
604 B
JavaScript
|
exports.up = async (knex) => {
|
||
|
await knex.schema.alterTable('alerts', (table) => {
|
||
|
table.boolean('all_actors')
|
||
|
.notNullable()
|
||
|
.defaultTo(true);
|
||
|
|
||
|
table.boolean('all_entities')
|
||
|
.notNullable()
|
||
|
.defaultTo(true);
|
||
|
|
||
|
table.boolean('all_tags')
|
||
|
.notNullable()
|
||
|
.defaultTo(true);
|
||
|
|
||
|
table.boolean('all_matches')
|
||
|
.notNullable()
|
||
|
.defaultTo(true);
|
||
|
});
|
||
|
};
|
||
|
|
||
|
exports.down = async (knex) => {
|
||
|
await knex.schema.alterTable('alerts', (table) => {
|
||
|
table.dropColumn('all_actors');
|
||
|
table.dropColumn('all_entities');
|
||
|
table.dropColumn('all_tags');
|
||
|
table.dropColumn('all_matches');
|
||
|
});
|
||
|
};
|