From 26204232ee14e266b57387e388f99cfafa3c49b6 Mon Sep 17 00:00:00 2001 From: sjaanus Date: Tue, 5 Mar 2024 10:57:06 +0200 Subject: [PATCH] Fix --- .../20240305094305-features-remove-archived.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/migrations/20240305094305-features-remove-archived.js b/src/migrations/20240305094305-features-remove-archived.js index 6afe92fdf11e..dd97328744bd 100644 --- a/src/migrations/20240305094305-features-remove-archived.js +++ b/src/migrations/20240305094305-features-remove-archived.js @@ -6,3 +6,12 @@ exports.up = function (db, cb) { cb, ); }; + +exports.down = function (db, cb) { + db.runSql( + ` + ALTER TABLE features ADD COLUMN IF NOT EXISTS archived BOOLEAN DEFAULT FALSE; + `, + cb, + ); +};