spine-framework 0.3.11 → 0.3.12

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.
@@ -10,8 +10,12 @@ ALTER TABLE public.pipelines
10
10
  ALTER TABLE public.pipelines
11
11
  RENAME COLUMN steps TO stages;
12
12
 
13
- -- Add unique constraint on (app_id, slug) for seed-time resolution
14
- -- Partial index: only enforce uniqueness where slug IS NOT NULL
15
- CREATE UNIQUE INDEX IF NOT EXISTS pipelines_app_id_slug_idx
16
- ON public.pipelines (app_id, slug)
17
- WHERE slug IS NOT NULL;
13
+ -- Add unique constraint on (app_id, slug) for seed-time upsert via ON CONFLICT.
14
+ -- Must be a non-partial constraint — PostgREST requires non-partial unique indexes
15
+ -- for ON CONFLICT clause resolution. NULL slugs are naturally excluded from
16
+ -- uniqueness enforcement by Postgres (NULL != NULL), so no partial index is needed.
17
+ DROP INDEX IF EXISTS public.pipelines_app_id_slug_idx;
18
+ ALTER TABLE public.pipelines
19
+ DROP CONSTRAINT IF EXISTS pipelines_app_id_slug_key;
20
+ ALTER TABLE public.pipelines
21
+ ADD CONSTRAINT pipelines_app_id_slug_key UNIQUE (app_id, slug);
package/CHANGELOG.md CHANGED
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ---
6
6
 
7
+ ## [0.3.12] — 2026-06-09
8
+ - Fixed `pipelines` seed upsert: replaced partial unique index (`WHERE slug IS NOT NULL`) on `(app_id, slug)` with a full unique constraint — PostgREST requires a non-partial unique index for `ON CONFLICT` resolution; `pipelines.json` seed now upserts correctly during `install-app`
9
+
7
10
  ## [0.3.11] — 2026-06-09
8
11
  - Added `updateAccountFunnel` per-pipeline_slug rating storage in `custom_funnel-signal.ts` — signals now write `ratings[pipeline_slug]` alongside `ratings[stage]`, enabling per-funnel score breakdown in the UI
9
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spine-framework",
3
- "version": "0.3.11",
3
+ "version": "0.3.12",
4
4
  "private": false,
5
5
  "description": "Spine — enterprise application framework built on Supabase + Netlify + React",
6
6
  "type": "module",