diff --git a/src/migrations/20231218165612-inc-webhook-tokens-rename-secret-to-token.js b/src/migrations/20231218165612-inc-webhook-tokens-rename-secret-to-token.js new file mode 100644 index 0000000000..7358bb3857 --- /dev/null +++ b/src/migrations/20231218165612-inc-webhook-tokens-rename-secret-to-token.js @@ -0,0 +1,17 @@ +exports.up = function (db, cb) { + db.runSql( + ` + ALTER TABLE incoming_webhook_tokens RENAME COLUMN secret TO token; + `, + cb, + ); +}; + +exports.down = function (db, cb) { + db.runSql( + ` + ALTER TABLE incoming_webhook_tokens RENAME COLUMN token TO secret; + `, + cb, + ); +};