postgres vercel column "prefix" does not exist #5788
Labels
dependency-issue
The issue is in a dependency of payload - not payload itself
[missing-reproduction]
If an issue does not include a reproduction
[possible-bug]
Possible bug which hasn't been reproduced yet
Link to reproduction
No response
Describe the Bug
Hi,
we are having trouble when uploading files in production on Vercel because we always get this error:
error: column "prefix" does not exist
at /var/task/node_modules/pg/lib/client.js:526:17
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async /var/task/node_modules/drizzle-orm/node-postgres/index.cjs:41:28
at async find (/var/task/node_modules/@payloadcms/db-postgres/dist/find/findMany.js:167:21)
at async Object.findOne (/var/task/node_modules/@payloadcms/db-postgres/dist/findOne.js:20:22)
at async docWithFilenameExists (/var/task/.next/server/chunks/3005.js:28:239681)
at async getSafeFileName (/var/task/.next/server/chunks/3005.js:28:248633)
at async generateFileData (/var/task/.next/server/chunks/3005.js:28:242926)
at async create (/var/task/.next/server/chunks/3005.js:28:47026)
at async handler (/var/task/.next/server/chunks/2537.js:1:1921) {
length: 106,
severity: 'ERROR',
code: '42703',
detail: undefined,
hint: undefined,
position: '21',
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: 'parse_relation.c',
line: '3713',
routine: 'errorMissingColumn'
}
our media collection does indeed not have a prefix, so we don't understand why payload keeps trying to use it. Fully resetting our migration history and making a single clean new one didn't resolve the issue either. We can't use the latest version of db-postgres because of #5589
Regards,
Eric
To Reproduce
setup a payload project with next-payload and db-postgres on vercel and try uploading a file
Payload Version
2.12.1
Adapters and Plugins
@payloadcms/db-postgres: 0.3.1
The text was updated successfully, but these errors were encountered: