Skip to content

[Cloudflare Workers] Run Laravel migration plans in atomic D1 batches - #811

Draft
bosunski wants to merge 12 commits into
laravel:0.xfrom
bosunski:review/cf-d1-migrations
Draft

bosunski wants to merge 12 commits into
laravel:0.xfrom
bosunski:review/cf-d1-migrations

Conversation

@bosunski

@bosunski bosunski commented Dec 3, 2026

Copy link
Copy Markdown

D1 applies prebuilt statements as a batch. Let Laravel migrations compile their schema changes into a plan and submit the changes with the migration history entry. The plan also supports trusted SQL statements and adopting existing migration history.

This is stacked on the D1 queries and models draft. GitHub's diff against 0.x also includes the prerequisites. Review this change on its own.

A Wasm consumer compiled with the D1 migration layer. A migration against a D1 binding on this rebased branch is pending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants