Merge pull request #1650 from symonbaikov/feature/webhook-scope-filter

feat: filter webhooks per project, board, and account
This commit is contained in:
Daniel Hiller
2026-09-17 02:00:30 +02:00
committed by GitHub
12 changed files with 446 additions and 131 deletions
@@ -0,0 +1,22 @@
/*!
* Copyright (c) 2024 PLANKA Software GmbH
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
*/
exports.up = (knex) =>
knex.schema.alterTable('webhook', (table) => {
table.bigInteger('project_id');
table.bigInteger('user_id');
table.index('project_id');
table.index('user_id');
});
exports.down = (knex) =>
knex.schema.alterTable('webhook', (table) => {
table.dropIndex('user_id');
table.dropIndex('project_id');
table.dropColumn('user_id');
table.dropColumn('project_id');
});