Commit 1c1a006d authored by Tiger Watson's avatar Tiger Watson

Merge branch 'add-migration-for-defaulting-pat-prefix' into 'master'

feat: Set PersonalAccessToken default prefix

See merge request gitlab-org/gitlab!73314
parents d03ed2f4 1f7d3d18
# frozen_string_literal: true
class AddDefaultToPersonalAccessTokensPrefix < Gitlab::Database::Migration[1.0]
def change
change_column_default(:application_settings, :personal_access_token_prefix, from: nil, to: 'glpat-')
end
end
56af9791c8625d99e9a53690135086afccdbe8f58a5c236d6805b0883fb971b0
\ No newline at end of file
......@@ -10383,7 +10383,7 @@ CREATE TABLE application_settings (
encrypted_cloud_license_auth_token_iv text,
secret_detection_revocation_token_types_url text,
disable_feed_token boolean DEFAULT false NOT NULL,
personal_access_token_prefix text,
personal_access_token_prefix text DEFAULT 'glpat-'::text,
rate_limiting_response_text text,
invisible_captcha_enabled boolean DEFAULT false NOT NULL,
container_registry_cleanup_tags_service_max_list_size integer DEFAULT 200 NOT NULL,
......@@ -85,7 +85,7 @@ Example response:
"raw_blob_request_limit": 300,
"wiki_page_max_content_bytes": 52428800,
"require_admin_approval_after_user_signup": false,
"personal_access_token_prefix": "GL-",
"personal_access_token_prefix": "glpat-",
"rate_limiting_response_text": null,
"keep_latest_artifact": true,
"admin_mode": false,
......@@ -187,7 +187,7 @@ Example response:
"raw_blob_request_limit": 300,
"wiki_page_max_content_bytes": 52428800,
"require_admin_approval_after_user_signup": false,
"personal_access_token_prefix": "GL-",
"personal_access_token_prefix": "glpat-",
"rate_limiting_response_text": null,
"keep_latest_artifact": true,
"admin_mode": false,
......
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