Drizzle pg client throwing `scanner_yyerror` on push
Getting the following error upon running
I
drizzle-kit push:pg
to my local postgres.
Drizzle-Kit version 0.20.17
Drizzle-ORM version 0.30.9
using pg
version 8.11.3
Error:
(Also made sure there are no dashes (-
)in any fields nor table names.)
Looking at bin.js
where the error is throwing, I can see t error is thrown when Drizzle-Kit attempts to issue a statement to the given connection's client.I
console.log
this statement to view this statement right before the error is thrown:
...nothing unusual jumps out to me.
Some CREATE statements do work!
What is most strange is that when this runs, drizzle will recognize the metadata from the journal and ask about each of the tables that should be created or replaced.
After running through the whole, set I can notice two of the many tables get created on Drizzle-Studio, while the rest remain uncreated and the console throws the error user g0053 shared.
You can see my package for drizzle db stuff and schema here:
https://github.com/paulmikulskis/product-eng/tree/main/packages/db
Thank you very much for any help!GitHub
product-eng/packages/db at main · paulmikulskis/product-eng
Contribute to paulmikulskis/product-eng development by creating an account on GitHub.
1 Reply
UPDATE:
This error will throw when trying to use
array()
with an enum.
Here is the table definition:
When .array()
is removed from categories
and ins instead treated as a normal enum, the push works without error