Commit b413926f authored by Toon Claes's avatar Toon Claes

Merge branch '214523-migration-add-default-role-to-saml-providers' into 'master'

Add "default_membership_role" column to "saml_providers" table

See merge request gitlab-org/gitlab!37552
parents b4b27440 66729aa1
---
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
......@@ -15103,7 +15103,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
......@@ -24087,5 +24088,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