Fix directory error in version bump test task

This commit is contained in:
Alessio 2021-12-12 20:17:05 -08:00
parent 1e9f60db25
commit c95ed6c918
2 changed files with 2 additions and 2 deletions

View File

@ -124,7 +124,7 @@ tasks:
# Now test the upgrade using the newer version # Now test the upgrade using the newer version
which ../tw # Should be here from previous step which ../tw # Should be here from previous step
../tw --profile outdated_profile fetch_user michaelmalice # Any operation other than `create_profile` should trigger the upgrade ../tw fetch_user michaelmalice # Any operation other than `create_profile` should trigger the upgrade
duration=$SECONDS duration=$SECONDS
echo "Task completed in $(($duration / 60))m$(($duration % 60))s." echo "Task completed in $(($duration / 60))m$(($duration % 60))s."

View File

@ -87,7 +87,7 @@ func (p Profile) check_and_update_version() error {
if ENGINE_DATABASE_VERSION > version { if ENGINE_DATABASE_VERSION > version {
fmt.Printf(terminal_utils.COLOR_YELLOW) fmt.Printf(terminal_utils.COLOR_YELLOW)
fmt.Printf("================================================\n") fmt.Printf("================================================\n")
fmt.Printf("Database version is out of date. Upgrading database from version v%d to version v%d!\n", version, ENGINE_DATABASE_VERSION) fmt.Printf("Database version is out of date. Upgrading database from version %d to version %d!\n", version, ENGINE_DATABASE_VERSION)
fmt.Printf(terminal_utils.COLOR_RESET) fmt.Printf(terminal_utils.COLOR_RESET)
return p.UpgradeFromXToY(version, ENGINE_DATABASE_VERSION) return p.UpgradeFromXToY(version, ENGINE_DATABASE_VERSION)
} }