Skip to content

Commit

Permalink
Change JSON schema for Column.Nullable field
Browse files Browse the repository at this point in the history
Set a default value so that the generated type is `bool` rather than
`*bool`.
  • Loading branch information
andrew-farries committed Nov 27, 2024
1 parent 6885888 commit 01b19e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/migrations/types.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
},
"nullable": {
"description": "Indicates if the column is nullable",
"type": "boolean"
"type": "boolean",
"default": false
},
"pk": {
"description": "Indicates if the column is part of the primary key",
Expand Down

0 comments on commit 01b19e9

Please sign in to comment.