summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-01-06 13:51:06 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2018-01-06 13:51:06 +0000
commita7a7f8b15968418bf52d91341588f1c573f412c3 (patch)
tree787f81c62ca03677798cd1fa9adf037b326f5c91 /db
parent6d972724d426938a0bfd6744dc6464ec5f7e17f9 (diff)
parentff5124ed6ecb2f20841e535b3aaa3b0d230f920f (diff)
downloadgitlab-ce-a7a7f8b15968418bf52d91341588f1c573f412c3.tar.gz
Merge branch '41249-clearing-the-cache' into 'master'
Resolve "Clearing the cache" Closes #41249 See merge request gitlab-org/gitlab-ce!16067
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20171222183504_add_jobs_cache_index_to_project.rb13
-rw-r--r--db/schema.rb1
2 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20171222183504_add_jobs_cache_index_to_project.rb b/db/migrate/20171222183504_add_jobs_cache_index_to_project.rb
new file mode 100644
index 00000000000..607e9d027d7
--- /dev/null
+++ b/db/migrate/20171222183504_add_jobs_cache_index_to_project.rb
@@ -0,0 +1,13 @@
+# See http://doc.gitlab.com/ce/development/migration_style_guide.html
+# for more information on how to write migrations for GitLab.
+
+class AddJobsCacheIndexToProject < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ # Set this constant to true if this migration requires downtime.
+ DOWNTIME = false
+
+ def change
+ add_column :projects, :jobs_cache_index, :integer
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 740e80ccfd4..e6a2ea4c862 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1451,6 +1451,7 @@ ActiveRecord::Schema.define(version: 20171230123729) do
t.boolean "repository_read_only"
t.boolean "merge_requests_ff_only_enabled", default: false
t.boolean "merge_requests_rebase_enabled", default: false, null: false
+ t.integer "jobs_cache_index"
end
add_index "projects", ["ci_id"], name: "index_projects_on_ci_id", using: :btree