chore(changesets): add changeset for desktop PG migrations packaging fix

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
gsxdsm
2026-07-17 18:15:25 -07:00
parent d94fd0e61b
commit 09e519e3b8

View File

@@ -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."