mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-06 06:41:57 +08:00
12 lines
361 B
Ruby
12 lines
361 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.version}.")
|
|
end
|
|
end
|