drizzle-team / drizzle-team/drizzle-orm

[BUG]: db push is pushing wrong sql queries MYSQL

Open
#2,216 1 comment 1 reaction 0 assignees View on GitHub
bug bug/fixed-in-beta drizzle/kit
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

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

^0.30.6

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

^0.20.14

### Describe the Bug

![image](https://github.com/drizzle-team/drizzle-orm/assets/35369563/8dcf20ff-e489-4b58-a0ca-f6e493b12c30)
this generated sql file doesn't say ```ALTER TABLE `balance` ADD PRIMARY KEY(`Id`);```
but when I push it giving me error saying this bellow
![image](https://github.com/drizzle-team/drizzle-orm/assets/35369563/fffb00f8-7646-4ea9-ae78-c5df49c301d9)

### Expected behavior

I didn't alter the primary key but another column so it shouldn't give me that error

### Environment & setup

_No response_

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.