Skip to content

Add repository_read_only column to groups

What does this MR do?

In order to support the ability to change a Group repository's storage, we need to be able to mark a Group as having a read-only repository, in the same way it is done for Project repositories.

This MR adds the boolean column to the Group table as the first step in that process.

Epic &5166 (closed)

Refs #299052 (closed)

Migrate Up

== 20210115084949 AddRepositoryReadOnlyToGroups: migrating ====================
-- add_column(:namespaces, :repository_read_only, :boolean, {:default=>false, :null=>false})
   -> 0.0018s
== 20210115084949 AddRepositoryReadOnlyToGroups: migrated (0.0064s) ===========

Migrate Down

== 20210115084949 AddRepositoryReadOnlyToGroups: reverting ====================
-- remove_column(:namespaces, :repository_read_only)
   -> 0.0015s
== 20210115084949 AddRepositoryReadOnlyToGroups: reverted (0.0066s) ===========

Does this MR meet the acceptance criteria?

Conformity

Merge request reports