From 24b4e8dcb2d84a4a4011d385352279e38e3e76ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Tue, 9 Jan 2024 10:39:51 +0000 Subject: [PATCH] chore: incoming webhooks description migration (#5803) https://linear.app/unleash/issue/2-1822/incoming-webhooks-add-description A description field will help us better distinguish incoming webhooks and their purpose. --- .../20240109093021-incoming-webhooks-description.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/migrations/20240109093021-incoming-webhooks-description.js diff --git a/src/migrations/20240109093021-incoming-webhooks-description.js b/src/migrations/20240109093021-incoming-webhooks-description.js new file mode 100644 index 000000000000..0edf30194961 --- /dev/null +++ b/src/migrations/20240109093021-incoming-webhooks-description.js @@ -0,0 +1,12 @@ +exports.up = function (db, cb) { + db.runSql( + ` + ALTER TABLE incoming_webhooks ADD COLUMN IF NOT EXISTS description TEXT; + `, + cb, + ); +}; + +exports.down = function (db, callback) { + callback(); +};