Skip to content

[FEATURE]: Ability to disable nested migrations to be compatible with Cloudflare Wrangler migrations #5266

Description

@KieranP

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

I am using Drizzle 1.0 beta/rc with out: './migrations',. When I run drizzle-kit generate, it creates migrations in nested folders:

migrations/
  timestamp_random_name1/
    migration.sql
  timestamp_random_name2/
    migration.sql

The issue is that cloudflares wrangler d1 migrations apply only looks for files in the directory it is configured with (i.e. "migrations_dir": "./migrations") , not in subfolders under that directory,

This means drizzle migrations are not being applies. I have to manually move migrations.sql back to the drizzle directory, and rename them in order for wrangler to find them.

I have not seen an option in Drizzle to disabled nested migrations

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions