Commit 3c18ef0b authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch 'fj-add-repository-read-only-to-groups' into 'master'

Add repository_read_only column to groups

See merge request gitlab-org/gitlab!51800
parents d3e005ac 76f1a333
---
title: Add repository_read_only column to the Namespace table
merge_request: 51800
author:
type: added
# frozen_string_literal: true
class AddRepositoryReadOnlyToGroups < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
add_column :namespaces, :repository_read_only, :boolean, default: false, null: false
end
end
def down
with_lock_retries do
remove_column :namespaces, :repository_read_only
end
end
end
09766a70e36d4bbd8ecf7f5bba36c865873c1ac71f7eb8de04f70fd2c4da242e
\ No newline at end of file
...@@ -14331,7 +14331,8 @@ CREATE TABLE namespaces ( ...@@ -14331,7 +14331,8 @@ CREATE TABLE namespaces (
shared_runners_enabled boolean DEFAULT true NOT NULL, shared_runners_enabled boolean DEFAULT true NOT NULL,
allow_descendants_override_disabled_shared_runners boolean DEFAULT false NOT NULL, allow_descendants_override_disabled_shared_runners boolean DEFAULT false NOT NULL,
traversal_ids integer[] DEFAULT '{}'::integer[] NOT NULL, traversal_ids integer[] DEFAULT '{}'::integer[] NOT NULL,
delayed_project_removal boolean DEFAULT false NOT NULL delayed_project_removal boolean DEFAULT false NOT NULL,
repository_read_only boolean DEFAULT false NOT NULL
); );
CREATE SEQUENCE namespaces_id_seq CREATE SEQUENCE namespaces_id_seq
......
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