Commit fc9fbda2 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Reorder columns in running builds table for better alignment

parent e844f5a5
...@@ -6,8 +6,8 @@ class AddRunningBuildsTable < ActiveRecord::Migration[6.0] ...@@ -6,8 +6,8 @@ class AddRunningBuildsTable < ActiveRecord::Migration[6.0]
t.references :build, index: { unique: true }, null: false, foreign_key: { to_table: :ci_builds, on_delete: :cascade } t.references :build, index: { unique: true }, null: false, foreign_key: { to_table: :ci_builds, on_delete: :cascade }
t.references :project, index: true, null: false, foreign_key: { on_delete: :cascade } t.references :project, index: true, null: false, foreign_key: { on_delete: :cascade }
t.references :runner, index: true, null: false, foreign_key: { to_table: :ci_runners, on_delete: :cascade } t.references :runner, index: true, null: false, foreign_key: { to_table: :ci_runners, on_delete: :cascade }
t.integer :runner_type, limit: 2, null: false
t.datetime_with_timezone :created_at, null: false, default: -> { 'NOW()' } t.datetime_with_timezone :created_at, null: false, default: -> { 'NOW()' }
t.integer :runner_type, limit: 2, null: false
end end
end end
......
...@@ -11156,8 +11156,8 @@ CREATE TABLE ci_running_builds ( ...@@ -11156,8 +11156,8 @@ CREATE TABLE ci_running_builds (
build_id bigint NOT NULL, build_id bigint NOT NULL,
project_id bigint NOT NULL, project_id bigint NOT NULL,
runner_id bigint NOT NULL, runner_id bigint NOT NULL,
runner_type smallint NOT NULL, created_at timestamp with time zone DEFAULT now() NOT NULL,
created_at timestamp with time zone DEFAULT now() NOT NULL runner_type smallint NOT NULL
); );
CREATE SEQUENCE ci_running_builds_id_seq CREATE SEQUENCE ci_running_builds_id_seq
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment