diff --git a/src/migrations/20240102142100-incoming-webhooks-created-by.js b/src/migrations/20240102142100-incoming-webhooks-created-by.js new file mode 100644 index 000000000000..a11dec0c573b --- /dev/null +++ b/src/migrations/20240102142100-incoming-webhooks-created-by.js @@ -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(); +};