From 8008720712f1f6e45a981a4077943ffd9008aac5 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Thu, 17 Nov 2022 16:22:16 +0800 Subject: [PATCH] Con't: store actions as a json in db --- packages/db/migrations/0099.do.rules.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/db/migrations/0099.do.rules.sql b/packages/db/migrations/0099.do.rules.sql index 9ddcd50f9..4bf24e07f 100755 --- a/packages/db/migrations/0099.do.rules.sql +++ b/packages/db/migrations/0099.do.rules.sql @@ -9,7 +9,7 @@ CREATE TABLE omnivore.rules ( user_id uuid NOT NULL REFERENCES omnivore.user ON DELETE CASCADE, description text, query text NOT NULL, - actions text[] NOT NULL, + actions json NOT NULL, -- array of actions of type {type: 'action_type', params: [action_params]} enabled boolean NOT NULL DEFAULT true, created_at timestamptz NOT NULL DEFAULT current_timestamp, updated_at timestamptz NOT NULL DEFAULT current_timestamp