Commit 78f524dc authored by Adam Hegyi's avatar Adam Hegyi

Merge branch '322128-token-used-field' into 'master'

Add last_used_at field to cluster agent token

See merge request gitlab-org/gitlab!56023
parents 0c6ff651 5317e0c0
---
title: Add last_used_at field to cluster agent token
merge_request: 56023
author:
type: changed
# 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
a31b85b8ab0db2ad4daa5f2c15eacae97432e75e0e0a28f10d81f6a5aa94c8e0
\ No newline at end of file
...@@ -11156,6 +11156,7 @@ CREATE TABLE cluster_agent_tokens ( ...@@ -11156,6 +11156,7 @@ CREATE TABLE cluster_agent_tokens (
created_by_user_id bigint, created_by_user_id bigint,
description text, description text,
name text, name text,
last_used_at timestamp with time zone,
CONSTRAINT check_2b79dbb315 CHECK ((char_length(name) <= 255)), CONSTRAINT check_2b79dbb315 CHECK ((char_length(name) <= 255)),
CONSTRAINT check_4e4ec5070a CHECK ((char_length(description) <= 1024)), CONSTRAINT check_4e4ec5070a CHECK ((char_length(description) <= 1024)),
CONSTRAINT check_c60daed227 CHECK ((char_length(token_encrypted) <= 255)) CONSTRAINT check_c60daed227 CHECK ((char_length(token_encrypted) <= 255))
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