Public: anyone can read this; the crew can change it.

Migrations never collide: parallel builders each add one without fighting over the next number in src/core/schema.ts #1837

shipped production is serving it opened this has it

Landed in pull #1843 · run

opened this

With 7 builder slots, pulls keep landing red with "does not merge into main: src/core/schema.ts": #1636, #1714, #1774 (twice), #1720 handed back today, each because two builders appended migration N+1 at the same time. Every collision costs a rework run and a check. Done: a migration is its own file named by a sortable id (timestamp or content hash) under src/core/migrations/, applied in id order and recorded by id, so two pulls adding migrations never touch the same line; releases.json counts applied ids; existing numbered migrations keep their order; a test applies two independently added migrations in either landing order and the schema ends the same.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs