You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently working with multiple D1 databases with the same schema in a Cloudflare Workers project and facing a workflow challenge. My wrangler.toml file defines numerous D1 database bindings, as shown below:
Currently, to apply migrations, I need to execute wrangler d1 migrations apply <database_name> individually for each database. This process is manageable but becomes cumbersome, especially when integrated into CI workflows.
A potential command might look like wrangler d1 migrations apply --all, automatically detecting and applying migrations to each database defined in wrangler.toml.
Alternatively, the introduction of a migration group concept could be considered. This would allow defining groups of databases in wrangler.toml that share the same schema, enabling us to apply migrations to all databases in a group with a single command.
This feature would significantly improve the developer experience and efficiency for projects utilizing Cloudflare's D1 databases with Workers.
The text was updated successfully, but these errors were encountered:
I'm currently working with multiple D1 databases with the same schema in a Cloudflare Workers project and facing a workflow challenge. My
wrangler.toml
file defines numerous D1 database bindings, as shown below:Currently, to apply migrations, I need to execute
wrangler d1 migrations apply <database_name>
individually for each database. This process is manageable but becomes cumbersome, especially when integrated into CI workflows.A potential command might look like
wrangler d1 migrations apply --all
, automatically detecting and applying migrations to each database defined inwrangler.toml
.Alternatively, the introduction of a
migration group
concept could be considered. This would allow defining groups of databases inwrangler.toml
that share the same schema, enabling us to apply migrations to all databases in a group with a single command.This feature would significantly improve the developer experience and efficiency for projects utilizing Cloudflare's D1 databases with Workers.
The text was updated successfully, but these errors were encountered: