drizzle-team / drizzle-orm

Headless TypeScript ORM with a head. Runs on Node, Bun and Deno. Lives on the Edge and yes, it's a JavaScript ORM too 😅
https://orm.drizzle.team
Apache License 2.0
23.56k stars 579 forks source link

[BUG]: #2336

Closed Pranav-Bobde closed 4 months ago

Pranav-Bobde commented 4 months ago

What version of drizzle-orm are you using?

0.30.10

What version of drizzle-kit are you using?

0.21.2

Describe the Bug

First generation

image

Second generation

image

Third Generation

image

Fourth Generation

image

Expected behavior

To detect any changes made to the schema.

Environment & setup

I've tested this with npm & bun.

The above ones are of npm and you can find the same for bun here.

sakkshm26 commented 4 months ago

I'm experiencing the same issue with the unique constraint. Adding or removing the unique constraint on an existing table is not detected when creating a migration.

hrishikeshmane commented 4 months ago

I changed my drizzle kit from 0.21.1 -> 0.21.0 and it worked for me

fanckush commented 4 months ago

same issue here

AndriiSherman commented 4 months ago

This should be fixed in drizzle-kit@0.21.3. If the issue persists, feel free to reopen it!

fanckush commented 4 months ago

@AndriiSherman do you mean 0.21.4? I had the same issue with 0.21.3