diff options
author | Jarka Kadlecova <jarka@gitlab.com> | 2017-08-30 16:57:50 +0200 |
---|---|---|
committer | Jarka Kadlecova <jarka@gitlab.com> | 2017-09-14 14:50:32 +0200 |
commit | b9287208523e1a5c05939fe0db038df51a9082fc (patch) | |
tree | 7cc859ffab52ae526924676395374d4621fd96c3 /db | |
parent | 1140fcce4f8b5463f451356b76fea125826478b2 (diff) | |
download | gitlab-ce-b9287208523e1a5c05939fe0db038df51a9082fc.tar.gz |
Support discussion locking in the backend
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20161207221154_add_dicussion_locked_to_issuable.rb | 16 | ||||
-rw-r--r-- | db/schema.rb | 2 |
2 files changed, 18 insertions, 0 deletions
diff --git a/db/migrate/20161207221154_add_dicussion_locked_to_issuable.rb b/db/migrate/20161207221154_add_dicussion_locked_to_issuable.rb new file mode 100644 index 00000000000..bb60ac2a410 --- /dev/null +++ b/db/migrate/20161207221154_add_dicussion_locked_to_issuable.rb @@ -0,0 +1,16 @@ +class AddDicussionLockedToIssuable < ActiveRecord::Migration + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + disable_ddl_transaction! + + def up + add_column(:merge_requests, :discussion_locked, :boolean) + add_column(:issues, :discussion_locked, :boolean) + end + + def down + remove_column(:merge_requests, :discussion_locked) + remove_column(:issues, :discussion_locked) + end +end diff --git a/db/schema.rb b/db/schema.rb index 2149f5ad23d..16f38f7b60b 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -660,6 +660,7 @@ ActiveRecord::Schema.define(version: 20170905112933) do t.integer "cached_markdown_version" t.datetime "last_edited_at" t.integer "last_edited_by_id" + t.boolean "discussion_locked", default: false, null: false end add_index "issues", ["assignee_id"], name: "index_issues_on_assignee_id", using: :btree @@ -882,6 +883,7 @@ ActiveRecord::Schema.define(version: 20170905112933) do t.integer "head_pipeline_id" t.boolean "ref_fetched" t.string "merge_jid" + t.boolean "discussion_locked", default: false, null: false end add_index "merge_requests", ["assignee_id"], name: "index_merge_requests_on_assignee_id", using: :btree |