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

18 lines
335 B
JavaScript
Raw Normal View History

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