@makaio/storage-pg 1.0.0-dev-1781368534585 → 1.0.0-dev-1781454904823

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ CREATE TABLE "workflow_execution_state" (
2
+ "execution_id" text PRIMARY KEY NOT NULL,
3
+ "sequence" integer DEFAULT 0 NOT NULL,
4
+ "value" jsonb NOT NULL,
5
+ "updated_at" bigint NOT NULL
6
+ );
7
+ --> statement-breakpoint
8
+ CREATE TABLE "workflow_execution_state_events" (
9
+ "execution_id" text NOT NULL,
10
+ "sequence" integer NOT NULL,
11
+ "patch" jsonb NOT NULL,
12
+ "value" jsonb NOT NULL,
13
+ "created_at" bigint NOT NULL,
14
+ CONSTRAINT "workflow_execution_state_events_execution_id_sequence_pk" PRIMARY KEY("execution_id","sequence")
15
+ );
16
+ --> statement-breakpoint
17
+ ALTER TABLE "workflow_execution_state" ADD CONSTRAINT "workflow_execution_state_execution_id_workflow_executions_id_fk" FOREIGN KEY ("execution_id") REFERENCES "workflow_executions"("id") ON DELETE cascade ON UPDATE no action;--> statement-breakpoint
18
+ ALTER TABLE "workflow_execution_state_events" ADD CONSTRAINT "workflow_execution_state_events_execution_id_workflow_executions_id_fk" FOREIGN KEY ("execution_id") REFERENCES "workflow_executions"("id") ON DELETE cascade ON UPDATE no action;
@@ -0,0 +1 @@
1
+ ALTER TABLE "workflow_definitions" ADD COLUMN "state" jsonb;