How to remove the space between timestamp and precision?
When I run drizzle kit generate
, I got I already have the table with timestamp(3) but it was generated because there was space between timestamp and precision. How to solve this problem? I'm using
, I got I already have the table with timestamp(3) but it was generated because there was space between timestamp and precision. How to solve this problem? I'm using
"drizzle-kit": "^0.20.14"
, and "drizzle-orm": "^0.30.0"
4 Replies
hey @Ghostman facing the same issue, did you find a workaround?
fixed by setting the timestamp to a sting e.g.
But if I set the timestamp to string, I'm having typescript error on my project because the "created_at" was set as date
@Jim is there any other solution with using mode "date"?
@Ghostman hey ghostman sorry i missed this!
Unfortunalty not, I will let you know if I find a workaround without converting to string
GitHub
[BUG]: data loss when using timestamp(3) and
push
command · Issu...What version of drizzle-orm are you using? 0.30.8 What version of drizzle-kit are you using? 0.20.14 Describe the Bug When I have the following in my table schema: createdAt: timestamp("create...