We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ecbcee commit 55c6ce9Copy full SHA for 55c6ce9
packages/db-postgres/src/init.ts
@@ -1,14 +1,12 @@
1
-/* eslint-disable no-param-reassign */
2
-import type { SanitizedCollectionConfig } from 'payload'
3
-import type { Init } from 'payload'
+import type { Init, SanitizedCollectionConfig } from 'payload'
4
+import { createTableName } from '@payloadcms/drizzle'
5
import { pgEnum, pgSchema, pgTable } from 'drizzle-orm/pg-core'
6
import { buildVersionCollectionFields, buildVersionGlobalFields } from 'payload'
7
import toSnakeCase from 'to-snake-case'
8
9
import type { PostgresAdapter } from './types.js'
10
11
-import { createTableName } from '../../drizzle/src/createTableName.js'
12
import { buildTable } from './schema/build.js'
13
14
export const init: Init = function init(this: PostgresAdapter) {
0 commit comments