Skip to content

Commit

Permalink
fix columnToCodeConverter regression
Browse files Browse the repository at this point in the history
  • Loading branch information
r1tsuu committed Dec 16, 2024
1 parent 22230a8 commit 0f55ee8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/db-sqlite/src/columnToCodeConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export const columnToCodeConverter: ColumnToCodeConverter = ({

case 'enum': {
let options: string[]
if ('isLocale' in column) {
if ('locale' in column) {
options = locales
} else {
options = column.options
Expand Down
2 changes: 1 addition & 1 deletion packages/drizzle/src/postgres/columnToCodeConverter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const columnToCodeConverter: ColumnToCodeConverter = ({
columnBuilderFn = 'geometryColumn'
addImport(`@payloadcms/drizzle/postgres`, columnBuilderFn)
} else if (column.type === 'enum') {
if ('isLocale' in column) {
if ('locale' in column) {
columnBuilderFn = `enum__locales`
} else {
addEnum(column.enumName, column.options)
Expand Down

0 comments on commit 0f55ee8

Please sign in to comment.