summaryrefslogtreecommitdiff
path: root/db/schema.rb
diff options
context:
space:
mode:
authorTomasz Maczukin <tomasz@maczukin.pl>2018-03-26 18:58:35 +0200
committerTomasz Maczukin <tomasz@maczukin.pl>2018-03-28 14:00:04 +0200
commit403decbbad26bea620125aed34b440a9b6611172 (patch)
tree1c587d73c314873a113d27f4c271866770d6a57e /db/schema.rb
parent7008ed1e33bff510126a0eb0e4f7bf1a7adb02bd (diff)
downloadgitlab-ce-403decbbad26bea620125aed34b440a9b6611172.tar.gz
Add explicit primary key for ci_builds_metadata table
Diffstat (limited to 'db/schema.rb')
-rw-r--r--db/schema.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb
index 56541aa4ecd..3d3a4c0ce4a 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -329,12 +329,14 @@ ActiveRecord::Schema.define(version: 20180327101207) do
add_index "ci_builds", ["updated_at"], name: "index_ci_builds_on_updated_at", using: :btree
add_index "ci_builds", ["user_id"], name: "index_ci_builds_on_user_id", using: :btree
- create_table "ci_builds_metadata", primary_key: "build_id", force: :cascade do |t|
+ create_table "ci_builds_metadata", force: :cascade do |t|
+ t.integer "build_id", null: false
t.integer "project_id", null: false
t.integer "timeout"
t.integer "timeout_source", default: 1, null: false
end
+ add_index "ci_builds_metadata", ["build_id"], name: "index_ci_builds_metadata_on_build_id", unique: true, using: :btree
add_index "ci_builds_metadata", ["project_id"], name: "index_ci_builds_metadata_on_project_id", using: :btree
create_table "ci_group_variables", force: :cascade do |t|