summaryrefslogtreecommitdiff
path: root/db/schema.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-03-07 21:35:20 -0800
committerStan Hu <stanhu@gmail.com>2018-03-08 00:25:15 -0800
commita5e3cd7f516bf9d3584eb35bf154854f97cddbeb (patch)
treef0f1fee3898ff396cbf8d7a0f3034aca8dbb0097 /db/schema.rb
parent7734e85bc6592c5ad3330c611c5f83a051b680b0 (diff)
downloadgitlab-ce-a5e3cd7f516bf9d3584eb35bf154854f97cddbeb.tar.gz
Add index on section_name_id on ci_build_trace_sections tablesh-add-section-name-index
This was causing user deletions to time out. Closes #44008
Diffstat (limited to 'db/schema.rb')
-rw-r--r--db/schema.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb
index b93e6fa594b..d47aaf16f11 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20180307012445) do
+ActiveRecord::Schema.define(version: 20180308052825) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -264,6 +264,7 @@ ActiveRecord::Schema.define(version: 20180307012445) do
add_index "ci_build_trace_sections", ["build_id", "section_name_id"], name: "index_ci_build_trace_sections_on_build_id_and_section_name_id", unique: true, using: :btree
add_index "ci_build_trace_sections", ["project_id"], name: "index_ci_build_trace_sections_on_project_id", using: :btree
+ add_index "ci_build_trace_sections", ["section_name_id"], name: "index_ci_build_trace_sections_on_section_name_id", using: :btree
create_table "ci_builds", force: :cascade do |t|
t.string "status"