IceAge2OnDVD
IceAge2OnDVD
Explore posts from servers
DTDrizzle Team
Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
maybe im misremembering things
33 replies
DTDrizzle Team
Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
I recently updated drizzle for the first time in a month, and i think it must have been working at some point because I've been using drizzle in my codebase for a while
33 replies
DTDrizzle Team
Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
if you do this on a seperate branch then you shouldn't have data loss (hopefully)
33 replies
DTDrizzle Team
Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
So the fix for me was to comment out my whole schema.ts file, push to planetscale (just to drop all the tables), then apply the current_timestamp fix. For some reason this seemed to fix things
33 replies
DTDrizzle Team
Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
seems to be an issue introduced in more recent version, also was very fineky to fix. Had to push an empty schema to a development branch first before pushing the fix
33 replies
DTDrizzle Team
Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
managed to fix it by changing all my
timestamp("time").defaultNow()
timestamp("time").defaultNow()
to
timestamp("time").default(sql`current_timestamp()`)
timestamp("time").default(sql`current_timestamp()`)
33 replies
DTDrizzle Team
Created by focused_morning on 8/23/2023 in #help
Invalid default value for 'updatedAt'
Had this same issue today!
33 replies