Dropping mysql unique errors
Hello!
I saw there were already an issue created for it
https://github.com/drizzle-team/drizzle-orm/issues/998
database: mysql
package: drizzle-kit
my own error message
I realized that the SQL query for dropping a
UNIQUE
the CONSTRAINT
should be changed to INDEX
I ran the the above query in planetscale's console, and it successfully dropped the UNIQUE CONSTRAINT
and then ran db:push
and it successfully made the changes ๐
I tried looking (but i am dumb) to see where the query for the drizzle-kit
DROP
statement would be built but I could not find anything ๐ฆ would love to make a PR on this if possible ๐GitHub
[BUG]: Cannot drop Unique Constraint MySQL ยท Issue #998 ยท drizzle-t...
What version of drizzle-orm are you using? 0.28.1 What version of drizzle-kit are you using? 0.19.12 Describe the Bug Create a mysql table with a unique constraint Drizzle-kit push Delete the uniqu...
1 Reply
I have the same problem!