Commit 1eeb5386 authored by Vijay Hawoldar's avatar Vijay Hawoldar

Add repository_read_only column to Snippets

parent 088803a9
---
title: Add repository_read_only column to Snippets
merge_request: 45868
author:
type: added
# frozen_string_literal: true
class AddRepositoryReadOnlyToSnippets < ActiveRecord::Migration[6.0]
DOWNTIME = false
def change
add_column :snippets, :repository_read_only, :boolean, default: false, null: false
end
end
809d93d367ff9310063904ee3c266914311ef54e8c7f9d6d7fd924d25890bf19
\ No newline at end of file
...@@ -16143,7 +16143,8 @@ CREATE TABLE snippets ( ...@@ -16143,7 +16143,8 @@ CREATE TABLE snippets (
description_html text, description_html text,
encrypted_secret_token character varying(255), encrypted_secret_token character varying(255),
encrypted_secret_token_iv character varying(255), encrypted_secret_token_iv character varying(255),
secret boolean DEFAULT false NOT NULL secret boolean DEFAULT false NOT NULL,
repository_read_only boolean DEFAULT false NOT NULL
); );
CREATE SEQUENCE snippets_id_seq CREATE SEQUENCE snippets_id_seq
......
...@@ -185,6 +185,7 @@ excluded_attributes: ...@@ -185,6 +185,7 @@ excluded_attributes:
- :secret - :secret
- :encrypted_secret_token - :encrypted_secret_token
- :encrypted_secret_token_iv - :encrypted_secret_token_iv
- :repository_read_only
merge_request_diff: merge_request_diff:
- :external_diff - :external_diff
- :stored_externally - :stored_externally
......
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