Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: #2336

Closed
Pranav-Bobde opened this issue May 16, 2024 · 5 comments
Closed

[BUG]: #2336

Pranav-Bobde opened this issue May 16, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@Pranav-Bobde
Copy link

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

  • It generates as expected.
image

Second generation

  • I add .default() to updatedAt
  • But this time it doesn't detect any changes
image

Third Generation

  • this time I removed default() and notNull() from both created and updated at
  • and again it failed to detect any changes
image

Fourth Generation

  • finally just to show here that It only detects when a columns added/deleted, I deleted the updatedAt column
  • as expected it detected the change
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
Copy link

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
Copy link

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

@fanckush
Copy link

same issue here

@AndriiSherman
Copy link
Member

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

@fanckush
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants