From 09e519e3b8e1fb1f701708717e0be0a80563ea17 Mon Sep 17 00:00:00 2001 From: gsxdsm Date: Fri, 17 Jul 2026 18:15:25 -0700 Subject: [PATCH] chore(changesets): add changeset for desktop PG migrations packaging fix Co-Authored-By: Claude Fable 5 --- .changeset/desktop-pg-migrations-packaging.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/desktop-pg-migrations-packaging.md diff --git a/.changeset/desktop-pg-migrations-packaging.md b/.changeset/desktop-pg-migrations-packaging.md new file mode 100644 index 0000000000..9b906749ea --- /dev/null +++ b/.changeset/desktop-pg-migrations-packaging.md @@ -0,0 +1,7 @@ +--- +"@runfusion/fusion": patch +--- + +summary: Fix packaged desktop app crashing on first boot because PostgreSQL migrations were missing from the build. +category: fix +dev: "@fusion/core's bare tsc build never copies src/postgres/migrations/*.sql into dist; the CLI compensates in packages/cli/tsup.config.ts but the desktop staging did not, so packaged Local mode crashed schema init (ENOENT dist/postgres/migrations/0000_initial.sql) after embedded Postgres started. packages/desktop/scripts/workspace-tools.ts now stages the migrations in buildCore(), re-stages them into the pnpm-deploy closure in stageDesktopDeploy(), and fails the build via verifyCoreMigrationsStaged() if the baseline migration is absent. Fixed in 6e5bb5d3d."