Skip to content

D1 migrations_dir | Support recursive .sql file search #13257

Description

@m-dressler

What versions & operating system are you using?

v4.62 - MacOS

Please provide a link to a minimal reproduction

drizzle-team/drizzle-orm#5266

Describe the Bug

As per this issue for drizzle-orm, with their upcoming v1, the migration files live in individual directories now.

Currently, wrangler only searches for .sql files in the provided migrations_dir exactly without searching subdirectories, resulting in it not finding the migrations it should apply.

While there are a variety of approaches to resolve this, I feel the simplest would be to search all subdirectories as well. Alternatively, glob matching might be more powerful.

Please provide any relevant error logs

No response

Metadata

Metadata

Labels

product:d1Relating to Cloudflare D1: https://developers.cloudflare.com/d1/

Type

Fields

No fields configured for Bug.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions