Make name not required in PgRollMigration (#282)

Signed-off-by: Alexis Rico <sferadev@gmail.com>
This commit is contained in:
Alexis Rico 2024-02-19 17:43:26 +01:00 committed by GitHub
parent 58fa7ae970
commit 6e4ee68310
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ type OpSetReplicaIdentity struct {
// PgRoll migration definition
type PgRollMigration struct {
// Name of the migration
Name string `json:"name"`
Name *string `json:"name,omitempty"`
// Operations corresponds to the JSON schema field "operations".
Operations PgRollOperations `json:"operations"`

View File

@ -517,7 +517,7 @@
"$ref": "#/$defs/PgRollOperations"
}
},
"required": ["name", "operations"],
"required": ["operations"],
"type": "object"
},
"ReplicaIdentity": {