Closed j-mcgregor closed 3 months ago
I am not using xata yet getting the "serial does not exist error" so maybe its something with payload itself. Did you find a fix?
I'm going to close this issue as it's fixed, thanks for the bump.
PayloadCMS uses drizzle behind the scenes for Postgres connection, we worked with Drizzle and they fixed the problem with serial types in their codebase.
@karranx Are you using Drizzle by any chance, wave you updated to a recent version?
@SferaDev i am using payload. the issue was on my end. i had conflicting table names.
Describe the bug
First off, love Xata! We want to adapt it into our full code base and it works for everything except for PayloadCMS. I've left comments on relevant PayloadCMS issues.
After creating a new Postgres-enabled database and storing the DATABASE_URI with fresh API key, I try and spin up a new payload (beta) app. 2 things then happen:
I'm guessing its a version / pg flavour mismatch but I don't know
To Reproduce
npx create-payload-app@beta
and paste the URI into the terminal when promptedExpected behavior
I should be able to use Xata Postgres for my PayloadCMS database
Software version
Additional context
I'm following up enquiries with Payload too. Since both Xata and Payload features right now are in beta, I know its a longshot but you lot seem like wizards so thought I'd ask