Skip to content

Radio Group's name is not convert to snake-case format in PostgreSQL #8402

@smoothdvd

Description

@smoothdvd

Link to reproduction

No response

Environment Info

Binaries:
  Node: 20.17.0
  npm: 10.8.2
  Yarn: N/A
  pnpm: 9.11.0
Relevant Packages:
  payload: 3.0.0-beta.108
Operating System:
  Platform: darwin
  Arch: arm64
  Version: Darwin Kernel Version 24.0.0: Mon Aug 12 20:49:48 PDT 2024; root:xnu-11215.1.10~2/RELEASE_ARM64_T8103
  Available memory (MB): 8192
  Available CPU cores: 8

Describe the Bug

Radio Group's name is not convert to snake-case format

Reproduction Steps

  1. install payloadcms 3.0 beta 108
  2. define a radio group field
{
      name: 'embedStatus',
      type: 'radio',
      defaultValue: 'pending',
      options: [
        {
          label: {
            en: 'Pending',
          },
          value: 'pending',
        },
        {
          label: {
            en: 'In progress',
          },
          value: 'in_progress',
        },
      ]
}

column name in db is embedStatus not embed_status

Screenshot 2024-09-25 at 9 03 53 PM

Adapters and Plugins

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions