mirror of
https://github.com/ubicloud/ubicloud.git
synced 2025-11-28 08:30:27 +08:00
Adding the migration for github custom labels, which will keep a custom label which can be used to have label-level limits. Also adding actual label column to keep what is passed from github as label.
12 lines
312 B
Ruby
12 lines
312 B
Ruby
# frozen_string_literal: true
|
|
|
|
Sequel.migration do
|
|
change do
|
|
alter_table(:github_runner) do
|
|
add_column :actual_label, :text, collate: '"C"', null: true
|
|
end
|
|
|
|
# Update existing runners to set actual_label to their current label
|
|
run "UPDATE github_runner SET actual_label = label"
|
|
end
|
|
end
|