summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-05-09 16:09:28 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2018-05-09 16:09:28 +0000
commit88c02d9efa4976176117c78f3e6454df2735ed67 (patch)
tree8cbbc0e2f9402631381fa893e22425fa2a66e948 /db
parentb673d75ced7420b55874fca8cdd59f6001e4483d (diff)
parente5df8b58903bfe86c528aaf3d2a3a5ac7b00302d (diff)
downloadgitlab-ce-88c02d9efa4976176117c78f3e6454df2735ed67.tar.gz
Merge branch 'fix/gb/add-missing-foreign-key-to-database-schema' into 'master'
Add missing pipeline build foreign key to the schema See merge request gitlab-org/gitlab-ce!18846
Diffstat (limited to 'db')
-rw-r--r--db/schema.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/schema.rb b/db/schema.rb
index 839a5f6699a..651bdbd3196 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -2148,6 +2148,7 @@ ActiveRecord::Schema.define(version: 20180508135515) do
add_foreign_key "ci_build_trace_sections", "ci_builds", column: "build_id", name: "fk_4ebe41f502", on_delete: :cascade
add_foreign_key "ci_build_trace_sections", "projects", on_delete: :cascade
add_foreign_key "ci_builds", "ci_pipelines", column: "auto_canceled_by_id", name: "fk_a2141b1522", on_delete: :nullify
+ add_foreign_key "ci_builds", "ci_pipelines", column: "commit_id", name: "fk_d3130c9a7f", on_delete: :cascade
add_foreign_key "ci_builds", "ci_stages", column: "stage_id", name: "fk_3a9eaa254d", on_delete: :cascade
add_foreign_key "ci_builds", "projects", name: "fk_befce0568a", on_delete: :cascade
add_foreign_key "ci_builds_metadata", "ci_builds", column: "build_id", on_delete: :cascade