drizzle-team / drizzle-team/drizzle-orm

[BUG]: Drizzle-kit (beta) no longer generates supabase safe migration files

Open
#5,166 1 comment 13 reactions 0 assignees View on GitHub
1.0.0-beta.* bug db/postgres drizzle/kit
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Report hasn't been filed before.

- [x] I have verified that the bug I'm about to report hasn't been filed before.

### What version of `drizzle-orm` are you using?

1.0.0-beta.2-86f844e

### What version of `drizzle-kit` are you using?

1.0.0-beta.2-86f844e

### Other packages

_No response_

### Describe the Bug

With drizzle-kit and this config

```
export default defineConfig({
schema: "./src/schema",
out: "./supabase/migrations",
dialect: "postgresql",
dbCredentials: {
url: process.env.DATABASE_URL,
},
migrations: {
prefix: "supabase",
},
});
```

previously this would generate migrations that result in migration files that conform to supabase format:
```
migrations/
├── 20251222212715_windy_celestials.sql
└── 20251222213451_pretty_mockingbird.sql
```

however in beta it seems to generate migrations in this format

```
migrations/
├── 20251222212715_windy_celestials/
│ ├── migration.sql
│ └── snapshot.json
└── 20251222213451_pretty_mockingbird/
├── migration.sql
└── snapshot.json
```

which breaks the natural supabase migration flows.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.