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.
10 lines
191 B
Ruby
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
|