1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-04 11:17:02 +02:00

feat: add action sort_order col

This commit is contained in:
Nuno Góis 2023-12-06 17:18:28 +00:00
parent 97fb6b1e42
commit 96ed6f9248
No known key found for this signature in database
GPG Key ID: 71ECC689F1091765

View File

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