Commit 53036a5b authored by Yorick Peterse's avatar Yorick Peterse

Merge branch 'backport-report_approver-migration-to-ce' into 'master'

Backport approval MR rules report_type migration to CE

See merge request gitlab-org/gitlab-ce!29766
parents 457db290 5d76e091
# frozen_string_literal: true
class AddReportTypeToApprovalMergeRequestRules < ActiveRecord::Migration[5.1]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def change
change_table :approval_merge_request_rules do |t|
t.integer :report_type, limit: 2
end
end
end
......@@ -249,6 +249,7 @@ ActiveRecord::Schema.define(version: 20190613030606) do
t.boolean "code_owner", default: false, null: false
t.string "name", null: false
t.integer "rule_type", limit: 2, default: 1, null: false
t.integer "report_type", limit: 2
t.index ["merge_request_id", "code_owner", "name"], name: "approval_rule_name_index_for_code_owners", unique: true, where: "(code_owner = true)", using: :btree
t.index ["merge_request_id", "code_owner"], name: "index_approval_merge_request_rules_1", using: :btree
t.index ["merge_request_id", "rule_type", "name"], name: "index_approval_rule_name_for_code_owners_rule_type", unique: true, where: "(rule_type = 2)", using: :btree
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment