1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-01 00:08:27 +01:00
unleash.unleash/src/migrations/20231218165612-inc-webhook-tokens-rename-secret-to-token.js
Nuno Góis 138d303da4
chore: rename secret to token in incoming_webhook_tokens (#5679)
Renames `secret` to `token` in `incoming_webhook_tokens` for
consistency. This table is not being used yet, so this should be a very
safe change.
2023-12-18 17:11:59 +00:00

18 lines
335 B
JavaScript

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