Commit 0762b5ca authored by Lucas Charles's avatar Lucas Charles

feat: Update default PAT prefix when not set

Updates the default Personal Access Token prefix to `glpat-` when not
previously set.

Relates to https://gitlab.com/gitlab-org/gitlab/-/issues/342327

Changelog: changed
parent 401a345f
# frozen_string_literal: true
class PopulateDefaultValueForPersonalAccessTokensPrefix < Gitlab::Database::Migration[1.0]
def up
execute(
<<-SQL
UPDATE
application_settings
SET
personal_access_token_prefix = default
WHERE
personal_access_token_prefix IS NULL
SQL
)
end
def down
# no-op
end
end
0c5627518093f6261679940402cbd756a91bf4617a37eecdbbc82dc57856dcec
\ No newline at end of file
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