Commit eb230448 authored by Tiger Watson's avatar Tiger Watson

Merge branch 'populate-default-for-pat-prefix' into 'master'

feat: Backfill default PAT prefix to glpat when not set

See merge request gitlab-org/gitlab!74439
parents 10d1a32a 0762b5ca
# 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