Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
df8f23f7
Commit
df8f23f7
authored
Mar 23, 2020
by
manojmj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add column to `namespaces` table for group-level PAT expiry
parent
244966bf
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
2 deletions
+26
-2
db/migrate/20200323075043_add_max_personal_access_token_lifetime_to_namespaces.rb
...3_add_max_personal_access_token_lifetime_to_namespaces.rb
+17
-0
db/structure.sql
db/structure.sql
+4
-2
ee/changelogs/unreleased/11889-gma-pat-expiry-db-changes.yml
ee/changelogs/unreleased/11889-gma-pat-expiry-db-changes.yml
+5
-0
No files found.
db/migrate/20200323075043_add_max_personal_access_token_lifetime_to_namespaces.rb
0 → 100644
View file @
df8f23f7
# 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
db/structure.sql
View file @
df8f23f7
...
...
@@ -3944,7 +3944,8 @@ CREATE TABLE public.namespaces (
max_artifacts_size
integer
,
mentions_disabled
boolean
,
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
...
...
@@ -12708,5 +12709,6 @@ INSERT INTO "schema_migrations" (version) VALUES
(
'20200318163148'
),
(
'20200318164448'
),
(
'20200318165448'
),
(
'20200319203901'
);
(
'20200319203901'
),
(
'20200323075043'
);
ee/changelogs/unreleased/11889-gma-pat-expiry-db-changes.yml
0 → 100644
View file @
df8f23f7
---
title
:
Add a DB column to allow GMA groups to specify their PAT expiry setting
merge_request
:
27769
author
:
type
:
added
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment