Commit 70066927 authored by Tiger Watson's avatar Tiger Watson

Merge branch '330274-add-a-boolean-column-for-tracking-mr-draft-status' into 'master'

Add a boolean column for tracking MR draft status

See merge request gitlab-org/gitlab!61681
parents 8bac8d8d 41e8e598
---
title: Add draft column to merge_requests table
merge_request: 61681
author:
type: other
# frozen_string_literal: true
class AddDraftColumnToMergeRequests < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
def up
with_lock_retries do
add_column :merge_requests, :draft, :boolean, default: false, null: false
end
end
def down
with_lock_retries do
remove_column :merge_requests, :draft
end
end
end
f2c85121d217aa953b6ae52e32624cf4164b1f1408bcbe8ae3facafc15b037ce
\ No newline at end of file
......@@ -14731,6 +14731,7 @@ CREATE TABLE merge_requests (
squash_commit_sha bytea,
sprint_id bigint,
merge_ref_sha bytea,
draft boolean DEFAULT false NOT NULL,
CONSTRAINT check_970d272570 CHECK ((lock_version IS NOT NULL))
);
......@@ -208,6 +208,7 @@ MergeRequest:
- discussion_locked
- allow_maintainer_to_push
- merge_ref_sha
- draft
MergeRequestDiff:
- id
- state
......
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