mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-05-10 20:35:02 +00:00
Add case_id to mutes. Add !mutes command to list mutes.
This commit is contained in:
parent
60c434999e
commit
7a372533ec
9 changed files with 131 additions and 3 deletions
12
migrations/20180801235500_add_case_id_to_mutes.js
Normal file
12
migrations/20180801235500_add_case_id_to_mutes.js
Normal file
|
@ -0,0 +1,12 @@
|
|||
exports.up = async function(knex, Promise) {
|
||||
await knex.schema.table('mutes', table => {
|
||||
table.integer('case_id').unsigned().nullable().defaultTo(null).after('user_id').references('id').inTable('cases').onDelete('SET NULL');
|
||||
});
|
||||
};
|
||||
|
||||
exports.down = async function(knex, Promise) {
|
||||
await knex.schema.table('mutes', table => {
|
||||
table.dropForeign('case_id');
|
||||
table.dropColumn('case_id');
|
||||
});
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue