Skip to content

Commit

Permalink
Upgrades the config file
Browse files Browse the repository at this point in the history
  • Loading branch information
tjayrush committed Sep 27, 2023
1 parent c8acd09 commit 8d96be9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/apps/chifra/cmd/root_initialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,11 @@ func VerifyMigrations() {
}
}

// // We need at least this version...
// requiredVersion := "v0.40.0-beta"
// if !config.IsAtLeastVersion(requiredVersion) {
// msg := strings.Replace(backVersion, "{0}", "{"+requiredVersion+"}", -1)
// msg = strings.Replace(msg, "[{VERSION}]", versionText, -1)
// msg = strings.Replace(msg, "{", colors.Green, -1)
// msg = strings.Replace(msg, "}", colors.Off, -1)
// logger.Fatal(msg)
// }
requiredVer := version.NewVersion("v1.0.0-release")
currentVer := version.NewVersion(config.GetVersion().Current)
if currentVer.Uint64() < requiredVer.Uint64() {
_ = upgrade.UpgradeConfigs(requiredVer) // does not return
}
}

func isStatusOrConfig() bool {
Expand Down
4 changes: 4 additions & 0 deletions src/other/build_assets/remote_testing/build_and_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ then
exit 1
fi

# If there are any config migrations, this will trigger it..
chifra blocks 1 2>&1 >/dev/null

# start the server...
TEST_MODE=true chifra daemon -p ":$SRV_PORT" 2>/dev/null &

echo "Waiting for chifra daemon -p :$SRV_PORT to start..."
Expand Down

0 comments on commit 8d96be9

Please sign in to comment.