ubicloud/migrate/20251009_add_runner_actual_label.rb
Burak Velioglu 37d4ae89b5 Add migration files for github custom labels and actual label column
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.
2025-10-20 15:12:52 +03:00

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