diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2019-06-18 14:09:54 +0000 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2019-06-18 14:09:54 +0000 |
commit | 53036a5bc6dcdc120ce828e3366be8b4486f9a6a (patch) | |
tree | 4a90be243491e5d417b5db438fcd0823028fde6a /db | |
parent | 457db29067aa231cd357ac1b9981adc9548fee75 (diff) | |
parent | 5d76e0911c1bbdae992112cba7ca9c591053d368 (diff) | |
download | gitlab-ce-53036a5bc6dcdc120ce828e3366be8b4486f9a6a.tar.gz |
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
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190521174505_add_report_type_to_approval_merge_request_rules.rb | 13 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20190521174505_add_report_type_to_approval_merge_request_rules.rb b/db/migrate/20190521174505_add_report_type_to_approval_merge_request_rules.rb new file mode 100644 index 00000000000..eafffd4f5a3 --- /dev/null +++ b/db/migrate/20190521174505_add_report_type_to_approval_merge_request_rules.rb @@ -0,0 +1,13 @@ +# 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 diff --git a/db/schema.rb b/db/schema.rb index ecf6fb7525b..a9643d70966 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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 |