mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
feat: support null created_by_user_id (#5744)
## About the changes Creating an incoming webhook with an admin token means we can't correlate the action with a real user. In this case we should support null.
This commit is contained in:
parent
e993846471
commit
2a1c0616e0
@ -0,0 +1,13 @@
|
|||||||
|
exports.up = function (db, cb) {
|
||||||
|
db.runSql(
|
||||||
|
`
|
||||||
|
ALTER TABLE incoming_webhooks ALTER COLUMN created_by_user_id DROP NOT NULL;
|
||||||
|
ALTER TABLE incoming_webhook_tokens ALTER COLUMN created_by_user_id DROP NOT NULL;
|
||||||
|
`,
|
||||||
|
cb,
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
exports.down = function (db, callback) {
|
||||||
|
callback();
|
||||||
|
};
|
Loading…
Reference in New Issue
Block a user