This fixes many various issues that are already fixed in 3.0. Updates Drizzle to match beta to fix some issues https://github.com/payloadcms/payload/issues/4673 https://github.com/payloadcms/payload/issues/6845 https://github.com/payloadcms/payload/issues/6266, prev Drizzle update PR https://github.com/payloadcms/payload/pull/7460/ Ported PRs: - https://github.com/payloadcms/payload/pull/6158 - https://github.com/payloadcms/payload/pull/7900 - https://github.com/payloadcms/payload/pull/7962 (does include duplication fixes for blocks / arrays with specific for 2.0 method) - https://github.com/payloadcms/payload/pull/8355 - https://github.com/payloadcms/payload/pull/8456 - https://github.com/payloadcms/payload/pull/8331 (not in the commits list, as it was a clean merge) - https://github.com/payloadcms/payload/pull/8369 - https://github.com/payloadcms/payload/pull/7749 - https://github.com/payloadcms/payload/pull/8539 --------- Co-authored-by: Dan Ribbens <dan.ribbens@gmail.com> Co-authored-by: James Mikrut <james@payloadcms.com>
Payload Postgres Adapter
Official Postgres adapter for Payload.
Installation
npm install @payloadcms/db-postgres
Usage
import { buildConfig } from 'payload/config'
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.