From 15e5b983ac43fd33561df0d49056dde92b824947 Mon Sep 17 00:00:00 2001 From: Mateusz Kwasniewski Date: Wed, 12 Apr 2023 08:42:52 +0200 Subject: [PATCH] feat: change request title migration (#3502) --- ...20230412062635-add-change-request-title.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/migrations/20230412062635-add-change-request-title.js diff --git a/src/migrations/20230412062635-add-change-request-title.js b/src/migrations/20230412062635-add-change-request-title.js new file mode 100644 index 0000000000..4a7656c618 --- /dev/null +++ b/src/migrations/20230412062635-add-change-request-title.js @@ -0,0 +1,19 @@ +'use strict'; + +exports.up = function (db, callback) { + db.runSql( + ` + ALTER TABLE change_requests ADD COLUMN title TEXT; + `, + callback, + ); +}; + +exports.down = function (db, callback) { + db.runSql( + ` + ALTER TABLE change_requests DROP COLUMN title; + `, + callback, + ); +};