From 86231dd9602a3ad25bffeb8ecf705f6ea06e6121 Mon Sep 17 00:00:00 2001 From: SferaDev Date: Wed, 6 Nov 2024 09:02:40 +0000 Subject: [PATCH] Update pgroll spec --- packages/pgroll/src/schema.ts | 6 +----- packages/pgroll/src/types.ts | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/pgroll/src/schema.ts b/packages/pgroll/src/schema.ts index cdc3ce5b9..30426af83 100644 --- a/packages/pgroll/src/schema.ts +++ b/packages/pgroll/src/schema.ts @@ -329,10 +329,6 @@ export const schema = { additionalProperties: false, description: 'Drop constraint operation', properties: { - column: { - description: 'Name of the column', - type: 'string' - }, down: { default: '', description: 'SQL expression for down migration', @@ -351,7 +347,7 @@ export const schema = { type: 'string' } }, - required: ['column', 'down', 'name', 'table', 'up'], + required: ['down', 'name', 'table', 'up'], type: 'object' }, OpDropIndex: { diff --git a/packages/pgroll/src/types.ts b/packages/pgroll/src/types.ts index 96d3126bc..a159fb876 100644 --- a/packages/pgroll/src/types.ts +++ b/packages/pgroll/src/types.ts @@ -90,7 +90,6 @@ export const OpDropColumnDefinition = z.object({ export type OpDropConstraint = z.infer; export const OpDropConstraintDefinition = z.object({ - column: z.string(), down: z.string(), name: z.string(), table: z.string(),