mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-06 00:07:44 +01:00
2a1c0616e0
## 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.
14 lines
328 B
JavaScript
14 lines
328 B
JavaScript
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();
|
|
};
|