Skip to content

Commit cb42de2

Browse files
committed
feat(n8n): add context_node table to db initialization script
1 parent 495112d commit cb42de2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

n8n/init.sql

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,3 +285,13 @@ ALTER TABLE ONLY "default".transfer
285285
ADD CONSTRAINT reward_transaction_pk PRIMARY KEY (id);
286286

287287
CREATE UNIQUE INDEX capability_domain_idx ON "default".capability USING btree (domain, name);
288+
289+
CREATE TABLE "default".context_node (
290+
namespace character varying NOT NULL,
291+
type character varying NOT NULL,
292+
id character varying NOT NULL,
293+
content json
294+
);
295+
296+
ALTER TABLE ONLY "default".context_node
297+
ADD CONSTRAINT context_node_unique UNIQUE (namespace, type, id);

0 commit comments

Comments
 (0)