Add repository_read_only column to groups

parent b842ce34
---
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
...@@ -14309,7 +14309,8 @@ CREATE TABLE namespaces ( ...@@ -14309,7 +14309,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