fix(drizzle): migrate args no longer partial payload request (#8375)

The arguments for migration up or down is now the full PayloadRequest instead of partial
This commit is contained in:
Paul
2024-09-25 07:29:37 -06:00
committed by GitHub
parent 82ba1930e5
commit c6519aba8a
2 changed files with 4 additions and 4 deletions

View File

@@ -127,11 +127,11 @@ export type IDType = 'integer' | 'numeric' | 'text'
export type MigrateUpArgs = { export type MigrateUpArgs = {
payload: Payload payload: Payload
req?: Partial<PayloadRequest> req: PayloadRequest
} }
export type MigrateDownArgs = { export type MigrateDownArgs = {
payload: Payload payload: Payload
req?: Partial<PayloadRequest> req: PayloadRequest
} }
declare module 'payload' { declare module 'payload' {

View File

@@ -156,5 +156,5 @@ export type PostgresDrizzleAdapter = Omit<
export type IDType = 'integer' | 'numeric' | 'uuid' | 'varchar' export type IDType = 'integer' | 'numeric' | 'uuid' | 'varchar'
export type MigrateUpArgs = { payload: Payload; req?: Partial<PayloadRequest> } export type MigrateUpArgs = { payload: Payload; req: PayloadRequest }
export type MigrateDownArgs = { payload: Payload; req?: Partial<PayloadRequest> } export type MigrateDownArgs = { payload: Payload; req: PayloadRequest }