Files
ubicloud/migrate/20250605_add_postgres_timeline_aws.rb
Furkan Sahin 2e2b337546 Add Location to PostgresTimeline - Migration
This information is required since there can be timelines without a
leader. For AWS S3 integrated timelines, we also don't have a
MinioCluster record in the database, therefor, we should still be able
to somehow refer to the address of the S3 store. For that, we are adding
the reference of location to the timeline. This way, we can always refer
to the S3 account that holds the backups of this timeline.
2025-06-16 16:28:46 +02:00

10 lines
191 B
Ruby

# frozen_string_literal: true
Sequel.migration do
change do
alter_table(:postgres_timeline) do
add_foreign_key :location_id, :location, type: :uuid, null: true
end
end
end