Commit 4985c56c authored by Mike Kozono's avatar Mike Kozono

Add default for external_diff_store

So new records will never have `NULL` external_diff_store, in
preparation for enforcing no `NULL`s.
parent 4765ba15
# frozen_string_literal: true
class AddDefaultValueForExternalDiffStoreToMergeRequestDiffs < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
change_column_default :merge_request_diffs, :external_diff_store, 1
end
end
def down
with_lock_retries do
change_column_default :merge_request_diffs, :external_diff_store, nil
end
end
end
ac65340525eba0cd025be706dde4deaf4574f8a7ffb9531d56ffae707e7e8b6d
\ No newline at end of file
......@@ -13003,7 +13003,7 @@ CREATE TABLE public.merge_request_diffs (
start_commit_sha character varying,
commits_count integer,
external_diff character varying,
external_diff_store integer,
external_diff_store integer DEFAULT 1,
stored_externally boolean
);
......
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