@pgflow/core 0.0.0-array-map-steps-c940873c-20251007091641 → 0.0.0-array-map-steps-cd94242a-20251008042921

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.
package/dist/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @pgflow/core
2
2
 
3
- ## 0.0.0-array-map-steps-c940873c-20251007091641
3
+ ## 0.0.0-array-map-steps-cd94242a-20251008042921
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -66,7 +66,7 @@
66
66
 
67
67
  - Updated dependencies [524db03]
68
68
  - Updated dependencies [524db03]
69
- - @pgflow/dsl@0.0.0-array-map-steps-c940873c-20251007091641
69
+ - @pgflow/dsl@0.0.0-array-map-steps-cd94242a-20251008042921
70
70
 
71
71
  ## 0.6.1
72
72
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgflow/core",
3
- "version": "0.0.0-array-map-steps-c940873c-20251007091641",
3
+ "version": "0.0.0-array-map-steps-cd94242a-20251008042921",
4
4
  "license": "AGPL-3.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -1,5 +1,12 @@
1
1
  -- Modify "step_task_record" composite type
2
2
  ALTER TYPE "pgflow"."step_task_record" ADD ATTRIBUTE "task_index" integer;
3
+ -- MANUAL DATA MIGRATION: Prepare existing data for new constraint
4
+ -- This UPDATE must run BEFORE the new constraint is added to avoid failures
5
+ -- The new constraint "remaining_tasks_state_consistency" requires that
6
+ -- remaining_tasks is NULL when status = 'created'
7
+ UPDATE "pgflow"."step_states"
8
+ SET "remaining_tasks" = NULL
9
+ WHERE "status" = 'created';
3
10
  -- Modify "step_states" table
4
11
  ALTER TABLE "pgflow"."step_states" DROP CONSTRAINT "step_states_remaining_tasks_check", ADD CONSTRAINT "initial_tasks_known_when_started" CHECK ((status <> 'started'::text) OR (initial_tasks IS NOT NULL)), ADD CONSTRAINT "remaining_tasks_state_consistency" CHECK ((remaining_tasks IS NULL) OR (status <> 'created'::text)), ADD CONSTRAINT "step_states_initial_tasks_check" CHECK ((initial_tasks IS NULL) OR (initial_tasks >= 0)), ALTER COLUMN "remaining_tasks" DROP NOT NULL, ALTER COLUMN "remaining_tasks" DROP DEFAULT, ADD COLUMN "initial_tasks" integer NULL;
5
12
  -- Modify "step_tasks" table
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pgflow/core",
3
- "version": "0.0.0-array-map-steps-c940873c-20251007091641",
3
+ "version": "0.0.0-array-map-steps-cd94242a-20251008042921",
4
4
  "license": "AGPL-3.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "dependencies": {
26
26
  "postgres": "^3.4.5",
27
- "@pgflow/dsl": "0.0.0-array-map-steps-c940873c-20251007091641"
27
+ "@pgflow/dsl": "0.0.0-array-map-steps-cd94242a-20251008042921"
28
28
  },
29
29
  "publishConfig": {
30
30
  "access": "public"