diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-18 19:00:14 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-18 19:00:14 +0000 |
commit | 05f0ebba3a2c8ddf39e436f412dc2ab5bf1353b2 (patch) | |
tree | 11d0f2a6ec31c7793c184106cedc2ded3d9a2cc5 /db/migrate/20221226163203_create_ci_runner_machines.rb | |
parent | ec73467c23693d0db63a797d10194da9e72a74af (diff) | |
download | gitlab-ce-1f5bd14001245a518cecb87d251dddcde78b9bfb.tar.gz |
Add latest changes from gitlab-org/gitlab@15-8-stable-eev15.8.0-rc42
Diffstat (limited to 'db/migrate/20221226163203_create_ci_runner_machines.rb')
-rw-r--r-- | db/migrate/20221226163203_create_ci_runner_machines.rb | 21 |
1 files changed, 21 insertions, 0 deletions
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 |