Skip to content

Commit e1c746d

Browse files
committed
feat: add package health fields
Signed-off-by: anilb <epipav@gmail.com>
1 parent c0d14d6 commit e1c746d

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

backend/src/osspckgs/migrations/V1781539311__packages_tables_sequin_updates.sql

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,13 @@ BEGIN
1818
END$$;
1919

2020
ALTER TABLE public.repo_activity_snapshot REPLICA IDENTITY FULL;
21+
22+
-- ─── 3. packages enriched health/lifecycle fields (synced back from Tinybird) ───
23+
ALTER TABLE packages
24+
ADD COLUMN IF NOT EXISTS lifecycle_label text,
25+
ADD COLUMN IF NOT EXISTS health_score smallint,
26+
ADD COLUMN IF NOT EXISTS health_label text,
27+
ADD COLUMN IF NOT EXISTS maintainer_health_score smallint,
28+
ADD COLUMN IF NOT EXISTS security_supply_chain_score smallint,
29+
ADD COLUMN IF NOT EXISTS development_activity_score smallint,
30+
ADD COLUMN IF NOT EXISTS signal_coverage_health jsonb;

0 commit comments

Comments
 (0)