Skip to content

Commit

Permalink
update policies only (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanshishikha authored Oct 16, 2024
1 parent a8812aa commit 4afcf6b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ type Configuration struct {
UpgradeToVersion string `json:"upgradeToVersion,omitempty" yaml:"upgradeToVersion,omitempty"`
UpgradeFromVersion string `json:"upgradeFromVersion,omitempty" yaml:"upgradeFromVersion,omitempty"`
RemoteDgraphRestoreUrl string `json:"remoteDgraphRestoreUrl,omitempty" yaml:"remoteDgraphRestoreUrl,omitempty"`
UpdateOnlyPolicies bool `json:"updateOnlyPolicies,omitempty" yaml:"updateOnlyPolicies,omitempty"`
}

const (
Expand Down
4 changes: 4 additions & 0 deletions common/upgradeSteps.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ import (

func StartUpgrade() error {

if Conf.UpdateOnlyPolicies {
return upgradePoliciesAndFeat()
}

logger.Logger.Info("------------Starting Upgrade--------------------")

logger.Logger.Info("------------Retrieve Schema from Prod Dgraph--------------------")
Expand Down

0 comments on commit 4afcf6b

Please sign in to comment.