Skip to content

Commit

Permalink
Create default arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
qbart committed Oct 19, 2021
1 parent ee3b922 commit 4f57c66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions krab/type_migration_set.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ func (ms *MigrationSet) InitDefaults() {
ms.Schema = "public"
}

if ms.Arguments != nil {
ms.Arguments.InitDefaults()
if ms.Arguments == nil {
ms.Arguments = &Arguments{}
}
ms.Arguments.InitDefaults()

if ms.Hooks == nil {
ms.Hooks = &Hooks{}
Expand Down

0 comments on commit 4f57c66

Please sign in to comment.