diff --git a/src/migrations/20240109095348-add-reason-column-to-schedule.js b/src/migrations/20240109095348-add-reason-column-to-schedule.js new file mode 100644 index 000000000000..a99eab3fd3b6 --- /dev/null +++ b/src/migrations/20240109095348-add-reason-column-to-schedule.js @@ -0,0 +1,16 @@ +'use strict'; + +exports.up = function (db, cb) { + db.runSql( + `ALTER TABLE change_request_schedule ADD COLUMN reason TEXT; + UPDATE change_request_schedule SET reason = failure_reason;`, + cb, + ); +}; + +exports.down = function (db, cb) { + db.runSql( + `ALTER TABLE change_request_schedule DROP COLUMN reason;`, + cb, + ); +};