Fixes #7402 This fixes a regression from changes to the postgres migration template that were incorrect. It also fixes other type errors for `payload.db.drizzle` which needed to be declared for postgres to avoid confusing it with Libsql for SQLite.
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.