[PRISMA] Value out of range for the type ERROR

I am attempting to create a headless wordpress setup with t3

1) I created a new wordpress instance and connected it to Planetscale
2) Tables are automatically generated (i believe during wordpress initialization) and pushed to Planetscale
3) I then connected t3 to the same Planetscale database and ran "npx prisma generate"
4) I got all the models introspected from my 'existing' wordpress database.
5) I try to load prisma studio. It loads all tables but the 'wp_posts' table fine.

wp_posts table gives me an error

Value out of range for the type. The column `post_date_gmt` contained an invalid datetime value with either day or month set to zero.


Reference:
https://github.com/prisma/prisma/issues/5006

In the github thread a couple people posted their solutions, not sure how to make them work for me.

I am looking for a solution that I can use with new and existing wordpress installs and wanting to see what this community thinks.

Planetscale wp_posts screenshot:
SlKAgxEAAAAAElFTkSuQmCC.png
Was this page helpful?