github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/upgrades/steps_222.go (about)

     1  // Copyright 2017 Canonical Ltd.
     2  // Licensed under the AGPLv3, see LICENCE file for details.
     3  
     4  package upgrades
     5  
     6  // stateStepsFor222 returns upgrade steps for Juju 2.2.2 that manipulate state directly.
     7  func stateStepsFor222() []Step {
     8  	return []Step{
     9  		&upgradeStep{
    10  			description: "add environ-version to model docs",
    11  			targets:     []Target{DatabaseMaster},
    12  			run: func(context Context) error {
    13  				return context.State().AddModelEnvironVersion()
    14  			},
    15  		},
    16  	}
    17  }