ubicloud/cli-commands/pg/post/upgrade.rb
2025-10-13 20:46:22 +05:30

12 lines
368 B
Ruby

# frozen_string_literal: true
UbiCli.on("pg").run_on("upgrade") do
desc "Schedule a major version upgrade of the PostgreSQL database"
banner "ubi pg (location/pg-name | pg-id) upgrade"
run do
id = sdk_object.upgrade.id
response("Scheduled major version upgrade of PostgreSQL database with id #{id} to version #{sdk_object.target_version}.")
end
end