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

No description
7 Replies
Dat Tran
Dat TranOP17mo ago
No description
Dat Tran
Dat TranOP17mo ago
No description
Dat Tran
Dat TranOP17mo ago
What is the correct syntax for these?
joogie
joogie17mo ago
also getting the same issue and i had to manually change them
No description
No description
Dat Tran
Dat TranOP17mo ago
Yeah, I want to manually change them but just have no idea what is it supposed to look like when correct.
oke
oke17mo 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
Angelelz17mo 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?