mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-10-06 14:51:57 +08:00
8 lines
299 B
Ruby
8 lines
299 B
Ruby
# frozen_string_literal: true
|
|
|
|
Sequel.migration do
|
|
change do
|
|
run "UPDATE postgres_resource SET desired_version = version"
|
|
run "UPDATE postgres_server SET version = postgres_resource.desired_version FROM postgres_resource WHERE postgres_resource.id = postgres_server.resource_id"
|
|
end
|
|
end
|