### What? Upgrade PG snapshot if needed during v3 migration ### Why? I'm unable to run the v3 migration as my PG snapshot is on version 5 instead the required 7 ### How? Copy code from typical migrations to upgrade PG snapshot as needed: https://github.com/payloadcms/payload/blob/main/packages/drizzle/src/postgres/createMigration.ts#L64 Co-authored-by: Jayce Pulsipher <jpulsipher@nav.com>
Payload Postgres Adapter
Official Postgres adapter for Payload.
Installation
npm install @payloadcms/db-postgres
Usage
import { buildConfig } from 'payload'
import { postgresAdapter } from '@payloadcms/db-postgres'
export default buildConfig({
db: postgresAdapter({
pool: {
connectionString: process.env.DATABASE_URI,
},
}),
// ...rest of config
})
More detailed usage can be found in the Payload Docs.