summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-12-24 00:07:31 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-12-24 00:07:31 +0000
commit3888bc4261500c275759683076e07baaf352e5ec (patch)
treeeb70e0415be41a1d713cc89f211a6045778cd6b8 /db
parent33e1622bfe5afb2eea08ff06e44de490383a93e3 (diff)
downloadgitlab-ce-3888bc4261500c275759683076e07baaf352e5ec.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20191213143656_create_ci_pipelines_config.rb14
-rw-r--r--db/schema.rb6
2 files changed, 20 insertions, 0 deletions
diff --git a/db/migrate/20191213143656_create_ci_pipelines_config.rb b/db/migrate/20191213143656_create_ci_pipelines_config.rb
new file mode 100644
index 00000000000..92636f35d01
--- /dev/null
+++ b/db/migrate/20191213143656_create_ci_pipelines_config.rb
@@ -0,0 +1,14 @@
+# frozen_string_literal: true
+
+class CreateCiPipelinesConfig < ActiveRecord::Migration[5.2]
+ DOWNTIME = false
+
+ def change
+ create_table :ci_pipelines_config, id: false do |t|
+ t.references :pipeline,
+ primary_key: true,
+ foreign_key: { to_table: :ci_pipelines, on_delete: :cascade }
+ t.text :content, null: false
+ end
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 0f709482884..219ac8c5263 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -876,6 +876,11 @@ ActiveRecord::Schema.define(version: 2019_12_18_225624) do
t.index ["user_id"], name: "index_ci_pipelines_on_user_id"
end
+ create_table "ci_pipelines_config", primary_key: "pipeline_id", force: :cascade do |t|
+ t.text "content", null: false
+ t.index ["pipeline_id"], name: "index_ci_pipelines_config_on_pipeline_id"
+ end
+
create_table "ci_resource_groups", force: :cascade do |t|
t.datetime_with_timezone "created_at", null: false
t.datetime_with_timezone "updated_at", null: false
@@ -4438,6 +4443,7 @@ ActiveRecord::Schema.define(version: 2019_12_18_225624) do
add_foreign_key "ci_pipelines", "external_pull_requests", name: "fk_190998ef09", on_delete: :nullify
add_foreign_key "ci_pipelines", "merge_requests", name: "fk_a23be95014", on_delete: :cascade
add_foreign_key "ci_pipelines", "projects", name: "fk_86635dbd80", on_delete: :cascade
+ add_foreign_key "ci_pipelines_config", "ci_pipelines", column: "pipeline_id", on_delete: :cascade
add_foreign_key "ci_resource_groups", "projects", name: "fk_774722d144", on_delete: :cascade
add_foreign_key "ci_resources", "ci_builds", column: "build_id", name: "fk_e169a8e3d5", on_delete: :nullify
add_foreign_key "ci_resources", "ci_resource_groups", column: "resource_group_id", on_delete: :cascade