Drizzle-kit introspect:pg returned malformed schema.ts file

No description
7 Replies
Dat Tran
Dat TranOP14mo ago
No description
Dat Tran
Dat TranOP14mo ago
No description
Dat Tran
Dat TranOP14mo ago
What is the correct syntax for these?
joogie
joogie14mo ago
also getting the same issue and i had to manually change them
No description
No description
Dat Tran
Dat TranOP14mo ago
Yeah, I want to manually change them but just have no idea what is it supposed to look like when correct.
oke
oke14mo ago
I think the mesageText line is correct. Maybe the issue is in your messageDate line, with the "AT TIME ZONE" thing, which seems like it should be wrapped in the sql function, as "AT TIME ZONE" is not valid Typescript
Angelelz
Angelelz14mo ago
You'll need to manually wrap whatever is returned in the default with sql`` Instrospection works with trivial values like string and numbers, but on stuff like this it struggles

Did you find this page helpful?