From cee2500a4d013c0987547dff70a125c7be7cb648 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gast=C3=B3n=20Fournier?= Date: Wed, 24 Jan 2024 12:52:04 +0100 Subject: [PATCH] feat(2-1879): add enabled to action sets (#6023) ## About the changes Adds enabled to action sets table --- ...20240124123000-add-enabled-to-action-sets.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/migrations/20240124123000-add-enabled-to-action-sets.js diff --git a/src/migrations/20240124123000-add-enabled-to-action-sets.js b/src/migrations/20240124123000-add-enabled-to-action-sets.js new file mode 100644 index 0000000000..ba3d56d2d2 --- /dev/null +++ b/src/migrations/20240124123000-add-enabled-to-action-sets.js @@ -0,0 +1,17 @@ +exports.up = function (db, cb) { + db.runSql( + ` + ALTER TABLE action_sets ADD COLUMN enabled BOOLEAN DEFAULT true; + `, + cb, + ); +}; + +exports.down = function (db, cb) { + db.runSql( + ` + ALTER TABLE action_sets DROP COLUMN enabled; + `, + cb, + ); +};