Skip to content

fix(hub): apply the platform schema only once per database (CL-8408) - #853

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-8408-migrate-once
Sep 18, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
cl-8408-migrate-once

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Contributor

Upstream's runMigrations is one-shot (no ledger, no IF NOT EXISTS). The hub ran it on every boot and bun run dev ran it once more in preflight, so the second run failed with 'relation account already exists' and the hub never came up. The platform SQL now runs only when the schema has no user table yet; the Corbits package migrations stay idempotent and still run every boot.

@linear-code

linear-code Bot commented Sep 18, 2026

Copy link
Copy Markdown

CL-8408

@TheGreatAxios
TheGreatAxios merged commit 4ff01c5 into main Sep 18, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant