Skip to content

Commit

Permalink
Update pgroll spec (#1449)
Browse files Browse the repository at this point in the history
Co-authored-by: SferaDev <[email protected]>
  • Loading branch information
xata-bot and SferaDev authored Apr 25, 2024
1 parent ff2c5bb commit 64faa85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/pgroll/src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,10 @@ export const schema = {
description: 'New name of the column (for rename column operation)',
type: 'string'
},
default: {
description: 'Default value of the column',
type: 'string'
},
nullable: {
description: 'Indicates if the column is nullable (for add/remove not null constraint operation)',
type: 'boolean'
Expand Down
1 change: 1 addition & 0 deletions packages/pgroll/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export const OpAlterColumnDefinition = z.object({
column: z.string(),
down: z.string().optional(),
name: z.string().optional(),
default: z.string().optional(),
nullable: z.boolean().optional(),
references: ForeignKeyReferenceDefinition.optional(),
table: z.string(),
Expand Down

0 comments on commit 64faa85

Please sign in to comment.