1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

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.
This commit is contained in:
Nuno Góis 2023-12-18 17:11:59 +00:00 committed by GitHub
parent b2c31a3bd3
commit 138d303da4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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