fix(db-postgres): properly reference drizzle createTableName function (#7383)
Fix incorrect relative import of drizzle package's `createTableName` function. Now uses proper package import. Fixes #7373
This commit is contained in:
@@ -1,14 +1,12 @@
|
|||||||
/* eslint-disable no-param-reassign */
|
import type { Init, SanitizedCollectionConfig } from 'payload'
|
||||||
import type { SanitizedCollectionConfig } from 'payload'
|
|
||||||
import type { Init } from 'payload'
|
|
||||||
|
|
||||||
|
import { createTableName } from '@payloadcms/drizzle'
|
||||||
import { pgEnum, pgSchema, pgTable } from 'drizzle-orm/pg-core'
|
import { pgEnum, pgSchema, pgTable } from 'drizzle-orm/pg-core'
|
||||||
import { buildVersionCollectionFields, buildVersionGlobalFields } from 'payload'
|
import { buildVersionCollectionFields, buildVersionGlobalFields } from 'payload'
|
||||||
import toSnakeCase from 'to-snake-case'
|
import toSnakeCase from 'to-snake-case'
|
||||||
|
|
||||||
import type { PostgresAdapter } from './types.js'
|
import type { PostgresAdapter } from './types.js'
|
||||||
|
|
||||||
import { createTableName } from '../../drizzle/src/createTableName.js'
|
|
||||||
import { buildTable } from './schema/build.js'
|
import { buildTable } from './schema/build.js'
|
||||||
|
|
||||||
export const init: Init = function init(this: PostgresAdapter) {
|
export const init: Init = function init(this: PostgresAdapter) {
|
||||||
|
|||||||
Reference in New Issue
Block a user