From 05f0ebba3a2c8ddf39e436f412dc2ab5bf1353b2 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 18 Jan 2023 19:00:14 +0000 Subject: Add latest changes from gitlab-org/gitlab@15-8-stable-ee --- .../20221226163203_create_ci_runner_machines.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 db/migrate/20221226163203_create_ci_runner_machines.rb (limited to 'db/migrate/20221226163203_create_ci_runner_machines.rb') diff --git a/db/migrate/20221226163203_create_ci_runner_machines.rb b/db/migrate/20221226163203_create_ci_runner_machines.rb new file mode 100644 index 00000000000..21ebeb898f4 --- /dev/null +++ b/db/migrate/20221226163203_create_ci_runner_machines.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +class CreateCiRunnerMachines < Gitlab::Database::Migration[2.1] + def change + create_table :ci_runner_machines do |t| + t.belongs_to :runner, index: false, null: false, foreign_key: { to_table: :ci_runners, on_delete: :cascade } + t.integer :executor_type, limit: 2 + t.text :machine_xid, null: false, limit: 64 + t.timestamps_with_timezone null: false + t.datetime_with_timezone :contacted_at + t.text :version, limit: 2048 + t.text :revision, limit: 255 + t.text :platform, limit: 255 + t.text :architecture, limit: 255 + t.text :ip_address, limit: 1024 + + t.index [:runner_id, :machine_xid], unique: true + t.index :version + end + end +end -- cgit v1.2.1