Skip to content

Commit

Permalink
fix: fixed package name
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoM committed Nov 24, 2022
1 parent fc98c5e commit a906775
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions cmd/migrate/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ func NewMigrateCmd(appName string, parseConfig *parsecmdtypes.Config) *cobra.Com
Use: "migrate [to-version]",
Short: "Perform the migrations from the current version to the specified one",
Long: `Migrates all the necessary things (config file, database, etc) from the current version to the new one.
If you are upgrading from a very old version to the latest one, migrations must be performed in order
(eg. to migrate from v1 to v3 you need to do v1 -> v2 and then v2 -> v3).
Note that migrations must be performed in order: to migrate from vX to vX+2 you need to do vX -> vX+1 and then vX+1 -> vX+2.
`,
Example: fmt.Sprintf("%s migrate v3", appName),
Args: cobra.RangeArgs(0, 1),
Expand Down
4 changes: 2 additions & 2 deletions cmd/migrate/v4/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"gopkg.in/yaml.v3"

v2 "github.com/forbole/juno/v3/cmd/migrate/v3"
v3 "github.com/forbole/juno/v3/cmd/migrate/v3"
databaseconfig "github.com/forbole/juno/v3/database/config"
"github.com/forbole/juno/v3/types/config"
)
Expand Down Expand Up @@ -41,7 +41,7 @@ func RunMigration(parseConfig *parsecmdtypes.Config) error {
}

func migrateConfig() (Config, error) {
cfg, err := v2.GetConfig()
cfg, err := v3.GetConfig()
if err != nil {
return Config{}, fmt.Errorf("error while reading v2 config: %s", err)
}
Expand Down

0 comments on commit a906775

Please sign in to comment.