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() ); `,