From 96ed6f92483b1b44d10bab754a0c49d6257c6383 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nuno=20G=C3=B3is?= Date: Wed, 6 Dec 2023 17:18:28 +0000 Subject: [PATCH] feat: add action sort_order col --- src/migrations/20231205155331-event-actions.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/migrations/20231205155331-event-actions.js b/src/migrations/20231205155331-event-actions.js index 02bff51c69..32545c2bb9 100644 --- a/src/migrations/20231205155331-event-actions.js +++ b/src/migrations/20231205155331-event-actions.js @@ -6,11 +6,12 @@ exports.up = function (db, cb) { CREATE TABLE IF NOT EXISTS event_actions ( id SERIAL PRIMARY KEY NOT NULL, - enabled BOOLEAN DEFAULT true NOT NULL, - name TEXT NOT NULL, event TEXT NOT NULL, + enabled BOOLEAN DEFAULT true NOT NULL, + name TEXT, action TEXT NOT NULL, parameters JSONB NOT NULL DEFAULT '{}'::jsonb, + sort_order INTEGER NOT NULL DEFAULT 9999, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT now() ); `,