Commit df8f23f7 authored by manojmj's avatar manojmj

Add column to `namespaces` table for group-level PAT expiry

parent 244966bf
# frozen_string_literal: true
class AddMaxPersonalAccessTokenLifetimeToNamespaces < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
add_column :namespaces, :max_personal_access_token_lifetime, :integer
end
end
def down
remove_column :namespaces, :max_personal_access_token_lifetime
end
end
...@@ -3944,7 +3944,8 @@ CREATE TABLE public.namespaces ( ...@@ -3944,7 +3944,8 @@ CREATE TABLE public.namespaces (
max_artifacts_size integer, max_artifacts_size integer,
mentions_disabled boolean, mentions_disabled boolean,
default_branch_protection smallint, default_branch_protection smallint,
unlock_membership_to_ldap boolean unlock_membership_to_ldap boolean,
max_personal_access_token_lifetime integer
); );
CREATE SEQUENCE public.namespaces_id_seq CREATE SEQUENCE public.namespaces_id_seq
...@@ -12708,5 +12709,6 @@ INSERT INTO "schema_migrations" (version) VALUES ...@@ -12708,5 +12709,6 @@ INSERT INTO "schema_migrations" (version) VALUES
('20200318163148'), ('20200318163148'),
('20200318164448'), ('20200318164448'),
('20200318165448'), ('20200318165448'),
('20200319203901'); ('20200319203901'),
('20200323075043');
---
title: Add a DB column to allow GMA groups to specify their PAT expiry setting
merge_request: 27769
author:
type: added
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