14 lines
377 B
TypeScript
14 lines
377 B
TypeScript
import type { Destroy } from 'payload/database'
|
|
|
|
import type { PostgresAdapter } from './types.js'
|
|
|
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
export const destroy: Destroy = async function destroy(this: PostgresAdapter) {
|
|
this.enums = {}
|
|
this.schema = {}
|
|
this.tables = {}
|
|
this.relations = {}
|
|
this.fieldConstraints = {}
|
|
this.drizzle = undefined
|
|
}
|