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
5317e0c0
Commit
5317e0c0
authored
Mar 09, 2021
by
Emily Ring
Committed by
Adam Hegyi
Mar 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add last_used_at field to cluster agent token
parent
e812cfc1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
0 deletions
+16
-0
changelogs/unreleased/322128-token-used-field.yml
changelogs/unreleased/322128-token-used-field.yml
+5
-0
db/migrate/20210309181019_add_last_used_at_to_cluster_agent_token.rb
...20210309181019_add_last_used_at_to_cluster_agent_token.rb
+9
-0
db/schema_migrations/20210309181019
db/schema_migrations/20210309181019
+1
-0
db/structure.sql
db/structure.sql
+1
-0
No files found.
changelogs/unreleased/322128-token-used-field.yml
0 → 100644
View file @
5317e0c0
---
title
:
Add last_used_at field to cluster agent token
merge_request
:
56023
author
:
type
:
changed
db/migrate/20210309181019_add_last_used_at_to_cluster_agent_token.rb
0 → 100644
View file @
5317e0c0
# frozen_string_literal: true
class
AddLastUsedAtToClusterAgentToken
<
ActiveRecord
::
Migration
[
6.0
]
DOWNTIME
=
false
def
change
add_column
:cluster_agent_tokens
,
:last_used_at
,
:datetime_with_timezone
end
end
db/schema_migrations/20210309181019
0 → 100644
View file @
5317e0c0
a31b85b8ab0db2ad4daa5f2c15eacae97432e75e0e0a28f10d81f6a5aa94c8e0
\ No newline at end of file
db/structure.sql
View file @
5317e0c0
...
...
@@ -11156,6 +11156,7 @@ CREATE TABLE cluster_agent_tokens (
created_by_user_id bigint,
description text,
name text,
last_used_at timestamp with time zone,
CONSTRAINT check_2b79dbb315 CHECK ((char_length(name) <= 255)),
CONSTRAINT check_4e4ec5070a CHECK ((char_length(description) <= 1024)),
CONSTRAINT check_c60daed227 CHECK ((char_length(token_encrypted) <= 255))
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