fix: optimize test infrastructure and fix missing brand migration
Some checks failed
CI / ci (push) Failing after 13s
CI / e2e (push) Has been skipped

- Share PGlite instance per test file (TRUNCATE RESTART IDENTITY instead
  of creating new instance per test) — tests run in ~9s vs minutes
- Add missing 'brand' column to items table migration
- Fix corrupt 0002 snapshot (merge conflict artifacts)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-06 20:08:11 +02:00
parent 412c86244b
commit c09183d94a
3 changed files with 65 additions and 197 deletions

View File

@@ -13,6 +13,7 @@ CREATE TABLE "global_item_tags" (
--> statement-breakpoint
ALTER TABLE "items" ADD COLUMN "global_item_id" integer;--> statement-breakpoint
ALTER TABLE "items" ADD COLUMN "purchase_price_cents" integer;--> statement-breakpoint
ALTER TABLE "items" ADD COLUMN "brand" text;--> statement-breakpoint
ALTER TABLE "thread_candidates" ADD COLUMN "global_item_id" integer;--> statement-breakpoint
UPDATE "items" SET "global_item_id" = (
SELECT "global_item_id" FROM "item_global_links"