Skip to content

Commit

Permalink
chore: rename secret to token in incoming_webhook_tokens (#5679)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nunogois authored Dec 18, 2023
1 parent b2c31a3 commit 138d303
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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,
);
};

0 comments on commit 138d303

Please sign in to comment.