Skip to content

Commit

Permalink
Update pgroll spec
Browse files Browse the repository at this point in the history
  • Loading branch information
SferaDev authored and xata-bot committed Nov 6, 2024
1 parent d9c19ad commit 86231dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions packages/pgroll/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -351,7 +347,7 @@ export const schema = {
type: 'string'
}
},
required: ['column', 'down', 'name', 'table', 'up'],
required: ['down', 'name', 'table', 'up'],
type: 'object'
},
OpDropIndex: {
Expand Down
1 change: 0 additions & 1 deletion packages/pgroll/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@ export const OpDropColumnDefinition = z.object({
export type OpDropConstraint = z.infer<typeof OpDropConstraintDefinition>;

export const OpDropConstraintDefinition = z.object({
column: z.string(),
down: z.string(),
name: z.string(),
table: z.string(),
Expand Down

0 comments on commit 86231dd

Please sign in to comment.