1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/src/migrations/20240109093021-incoming-webhooks-description.js
Nuno Góis 24b4e8dcb2
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.
2024-01-09 10:39:51 +00:00

13 lines
233 B
JavaScript

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();
};