Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-04-10 21:36:30 +0300
committerNick Thomas <nick@gitlab.com>2017-04-21 19:24:33 +0300
commitd2b883b7506d7b77d57583b5e9b17c024480b721 (patch)
tree939e32929eed7175d2e0fbb7de44b3bef8b250b7 /db/migrate/20170410133135_add_version_field_to_markdown_cache.rb
parente9819de10aa1ca29cb760c714c37ab0a23c0bd89 (diff)
Start versioning cached markdown fields
Diffstat (limited to 'db/migrate/20170410133135_add_version_field_to_markdown_cache.rb')
-rw-r--r--db/migrate/20170410133135_add_version_field_to_markdown_cache.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/db/migrate/20170410133135_add_version_field_to_markdown_cache.rb b/db/migrate/20170410133135_add_version_field_to_markdown_cache.rb
new file mode 100644
index 00000000000..d9209fe5770
--- /dev/null
+++ b/db/migrate/20170410133135_add_version_field_to_markdown_cache.rb
@@ -0,0 +1,25 @@
+class AddVersionFieldToMarkdownCache < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def change
+ %i[
+ abuse_reports
+ appearances
+ application_settings
+ broadcast_messages
+ issues
+ labels
+ merge_requests
+ milestones
+ namespaces
+ notes
+ projects
+ releases
+ snippets
+ ].each do |table|
+ add_column table, :cached_markdown_version, :integer, limit: 4
+ end
+ end
+end