error: column "id" cannot be cast automatically to type uuid
im using drizzle, and this is my schema:
when I tried pushing it:
7 Replies
put the .defaultRandom() AFTER .primaryKey()
At least that’s how I have it working in my code
not woeking
Your problem is that the
id
column already exists and is another type. Do you have data in that table?yeah, that was the issue, anyway thanks
need help with the same issue!
Please paste your table definition and the error you saw