Fixes https://github.com/payloadcms/payload/issues/8402 and https://github.com/payloadcms/payload/issues/8027 Before DB column names were camelCase:  After this change, they are snake_case:  #### Breaking SQLite / Postgres ⚠️ If you had any select (not `hasMany: true`) or radio fields with the name in camelCase, for example: ```ts { name: 'selectReadOnly', type: 'select', admin: { readOnly: true, }, options: [ { label: 'Value One', value: 'one', }, { label: 'Value Two', value: 'two', }, ], }, ``` This previously was mapped to the db column name `"selectReadOnly"`. Now it's `select_read_only`. Generate a new migration to rename your columns. ```sh pnpm payload migrate:create ``` Then select "rename column" for targeted columns and Drizzle will handle the migration. --------- Co-authored-by: Dan Ribbens <dan.ribbens@gmail.com>
Payload SQLite Adapter
Official SQLite adapter for Payload.
Installation
npm install @payloadcms/db-sqlite
Usage
import { buildConfig } from 'payload/config'
import { sqliteAdapter } from '@payloadcms/db-sqlite'
export default buildConfig({
db: sqliteAdapter({
client: {
url: process.env.DATABASE_URI,
},
}),
// ...rest of config
})
More detailed usage can be found in the Payload Docs.