From 5c3228473cd74a30c6d36ff48d157cbd71b3d8a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Wed, 6 Dec 2023 12:44:44 +0000 Subject: [PATCH] fix: add missing cols to event actions --- src/migrations/20231205155331-event-actions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/migrations/20231205155331-event-actions.js b/src/migrations/20231205155331-event-actions.js index 372ab2bb9c..ae37f8362d 100644 --- a/src/migrations/20231205155331-event-actions.js +++ b/src/migrations/20231205155331-event-actions.js @@ -6,9 +6,11 @@ exports.up = function (db, cb) { CREATE TABLE IF NOT EXISTS event_actions ( id SERIAL PRIMARY KEY NOT NULL, + enabled BOOLEAN DEFAULT true NOT NULL, event TEXT NOT NULL, action TEXT NOT NULL, - parameters JSONB NOT NULL DEFAULT '{}'::jsonb + parameters JSONB NOT NULL DEFAULT '{}'::jsonb, + created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now() ); `, cb,