Skip to content

Commit

Permalink
Fix pgroll migration definition
Browse files Browse the repository at this point in the history
Signed-off-by: Alexis Rico <[email protected]>
  • Loading branch information
SferaDev committed Dec 18, 2023
1 parent e3faa35 commit b7b1c08
Showing 1 changed file with 88 additions and 22 deletions.
110 changes: 88 additions & 22 deletions schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,48 +324,114 @@
"items": {
"anyOf": [
{
"$ref": "#/$defs/OpAddColumn",
"description": "Add column operation"
"type": "object",
"additionalProperties": false,
"properties": {
"add_column": {
"$ref": "#/$defs/OpAddColumn",
"description": "Add column operation"
}
}
},
{
"$ref": "#/$defs/OpAlterColumn",
"description": "Alter column operation"
"type": "object",
"additionalProperties": false,
"properties": {
"alter_column": {
"$ref": "#/$defs/OpAlterColumn",
"description": "Alter column operation"
}
}
},
{
"$ref": "#/$defs/OpCreateIndex",
"description": "Create index operation"
"type": "object",
"additionalProperties": false,
"properties": {
"create_index": {
"$ref": "#/$defs/OpCreateIndex",
"description": "Create index operation"
}
}
},
{
"$ref": "#/$defs/OpCreateTable",
"description": "Create table operation"
"type": "object",
"additionalProperties": false,
"properties": {
"create_table": {
"$ref": "#/$defs/OpCreateTable",
"description": "Create table operation"
}
}
},
{
"$ref": "#/$defs/OpDropColumn",
"description": "Drop column operation"
"type": "object",
"additionalProperties": false,
"properties": {
"drop_column": {
"$ref": "#/$defs/OpDropColumn",
"description": "Drop column operation"
}
}
},
{
"$ref": "#/$defs/OpDropConstraint",
"description": "Drop constraint operation"
"type": "object",
"additionalProperties": false,
"properties": {
"drop_constraint": {
"$ref": "#/$defs/OpDropConstraint",
"description": "Drop constraint operation"
}
}
},
{
"$ref": "#/$defs/OpDropIndex",
"description": "Drop index operation"
"type": "object",
"additionalProperties": false,
"properties": {
"drop_index": {
"$ref": "#/$defs/OpDropIndex",
"description": "Drop index operation"
}
}
},
{
"$ref": "#/$defs/OpDropTable",
"description": "Drop table operation"
"type": "object",
"additionalProperties": false,
"properties": {
"drop_table": {
"$ref": "#/$defs/OpDropTable",
"description": "Drop table operation"
}
}
},
{
"$ref": "#/$defs/OpRawSQL",
"description": "Raw SQL operation"
"type": "object",
"additionalProperties": false,
"properties": {
"raw_sql": {
"$ref": "#/$defs/OpRawSQL",
"description": "Raw SQL operation"
}
}
},
{
"$ref": "#/$defs/OpRenameTable",
"description": "Rename table operation"
"type": "object",
"additionalProperties": false,
"properties": {
"rename_table": {
"$ref": "#/$defs/OpRenameTable",
"description": "Rename table operation"
}
}
},
{
"$ref": "#/$defs/OpSetReplicaIdentity",
"description": "Set replica identity operation"
"type": "object",
"additionalProperties": false,
"properties": {
"set_replica_identity": {
"$ref": "#/$defs/OpSetReplicaIdentity",
"description": "Set replica identity operation"
}
}
}
]
},
Expand Down

0 comments on commit b7b1c08

Please sign in to comment.