Commit 66729aa1 authored by manojmj's avatar manojmj

Add "default_membership_role" column to "saml_providers" table

This change adds  "default_membership_role" column to
"saml_providers" table
parent fdaeabef
---
title: Add default_membership_role column to saml_providers table
merge_request: 37552
author:
type: added
# frozen_string_literal: true
class AddDefaultMembershipRoleToSamlProvider < ActiveRecord::Migration[6.0]
DOWNTIME = false
GUEST_USER_ROLE = 10
def change
add_column :saml_providers, :default_membership_role, :smallint, default: GUEST_USER_ROLE, null: false
end
end
......@@ -15031,7 +15031,8 @@ CREATE TABLE public.saml_providers (
sso_url character varying NOT NULL,
enforced_sso boolean DEFAULT false NOT NULL,
enforced_group_managed_accounts boolean DEFAULT false NOT NULL,
prohibited_outer_forks boolean DEFAULT true NOT NULL
prohibited_outer_forks boolean DEFAULT true NOT NULL,
default_membership_role smallint DEFAULT 10 NOT NULL
);
CREATE SEQUENCE public.saml_providers_id_seq
......@@ -24000,5 +24001,6 @@ COPY "schema_migrations" (version) FROM STDIN;
20200718040200
20200718040300
20200720154123
20200722084623
\.
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