Skip to content

Commit

Permalink
Update JSON schema
Browse files Browse the repository at this point in the history
To specify that multiple sub-operations are possible in an alter column
operation.
  • Loading branch information
andrew-farries committed Apr 10, 2024
1 parent 3be5ce3 commit ae1a7d2
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,29 +162,26 @@
"required": ["table", "column"],
"oneOf": [
{
"required": ["up", "down"],
"oneOf": [
"anyOf": [
{ "required": ["check"] },
{ "required": ["type"] },
{ "required": ["nullable"] },
{ "required": ["unique"] },
{ "required": ["references"] }
],
"not": {
"required": ["name"]
}
"required": ["up", "down"]
},
{
"required": ["name"],
"not": {
"anyOf": [
{ "required": ["up"] },
{ "required": ["down"] },
{ "required": ["check"] },
{ "required": ["type"] },
{ "required": ["nullable"] },
{ "required": ["unique"] },
{ "required": ["references"] }
{ "required": ["references"] },
{ "required": ["up"] },
{ "required": ["down"] }
]
}
}
Expand Down

0 comments on commit ae1a7d2

Please sign in to comment.