quasar_here
DTDrizzle Team
•Created by Jaxwn on 8/20/2023 in #help
Is there something wrong with my schema?
Actually I'm a guy who took the OP post to solve my issue because I didn't want to create another post
23 replies
DTDrizzle Team
•Created by Jaxwn on 8/20/2023 in #help
Is there something wrong with my schema?
@angelelz I appreciate your help very much and congratulations for becoming a Drizzle Advocate
I got a error when trying to run this migration and according to ChatGPT (I'm not proficient in databases myself), Postgres doesn't support update on current_timestamp that's why it recommended to use triggers instead
23 replies
DTDrizzle Team
•Created by Jaxwn on 8/20/2023 in #help
Is there something wrong with my schema?
Btw if this could be done in typescript as a function or something I think it will be better
23 replies
DTDrizzle Team
•Created by Jaxwn on 8/20/2023 in #help
Is there something wrong with my schema?
Sure, I appreciate it:
Right now I created a trigger:
And I'm calling after the users table creation with:
Can it get better?
23 replies
DTDrizzle Team
•Created by Jaxwn on 8/20/2023 in #help
Is there something wrong with my schema?
It did not worked, i'm struggling for hours for such a simple feature lmao
23 replies
DTDrizzle Team
•Created by Jaxwn on 8/20/2023 in #help
Is there something wrong with my schema?
I'm using postgres so I have an error:
Property onUpdateNow does not exist on type PgTimestampBuilder
23 replies