diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-28 06:08:59 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-10-28 06:08:59 +0000 |
commit | b312c3d3b42ebf0f1daaa76fcb921c59a83f199d (patch) | |
tree | a8cc10436e15aeb676ed1235c5416f1403dac539 /db | |
parent | a22f031743db01e51ee4f85c3368aa21cf8ac729 (diff) | |
download | gitlab-ce-b312c3d3b42ebf0f1daaa76fcb921c59a83f199d.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
5 files changed, 45 insertions, 0 deletions
diff --git a/db/migrate/20201021152210_add_secret_detection_token_revocation_application_settings.rb b/db/migrate/20201021152210_add_secret_detection_token_revocation_application_settings.rb new file mode 100644 index 00000000000..6334dcd8c1a --- /dev/null +++ b/db/migrate/20201021152210_add_secret_detection_token_revocation_application_settings.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +class AddSecretDetectionTokenRevocationApplicationSettings < ActiveRecord::Migration[6.0] + DOWNTIME = false + + def up + add_column :application_settings, :secret_detection_token_revocation_enabled, :boolean, default: false, null: false + add_column :application_settings, :secret_detection_token_revocation_url, :text, null: true # rubocop:disable Migration/AddLimitToTextColumns + + add_column :application_settings, :encrypted_secret_detection_token_revocation_token, :text + add_column :application_settings, :encrypted_secret_detection_token_revocation_token_iv, :text + end + + def down + remove_column :application_settings, :secret_detection_token_revocation_enabled + remove_column :application_settings, :secret_detection_token_revocation_url + + remove_column :application_settings, :encrypted_secret_detection_token_revocation_token + remove_column :application_settings, :encrypted_secret_detection_token_revocation_token_iv + end +end diff --git a/db/migrate/20201021190539_add_text_limit_to_secret_detection_token_revocation_application_settings.rb b/db/migrate/20201021190539_add_text_limit_to_secret_detection_token_revocation_application_settings.rb new file mode 100644 index 00000000000..ea5e12322d0 --- /dev/null +++ b/db/migrate/20201021190539_add_text_limit_to_secret_detection_token_revocation_application_settings.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class AddTextLimitToSecretDetectionTokenRevocationApplicationSettings < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_text_limit :application_settings, :secret_detection_token_revocation_url, 255 + end + + def down + remove_text_limit :application_settings, :secret_detection_token_revocation_url + end +end diff --git a/db/schema_migrations/20201021152210 b/db/schema_migrations/20201021152210 new file mode 100644 index 00000000000..78358b24bad --- /dev/null +++ b/db/schema_migrations/20201021152210 @@ -0,0 +1 @@ +853dbc604fc8ce4d82e6040aa7a7970ae194f09bafb2749077cd9f48d2708eac
\ No newline at end of file diff --git a/db/schema_migrations/20201021190539 b/db/schema_migrations/20201021190539 new file mode 100644 index 00000000000..902213f9029 --- /dev/null +++ b/db/schema_migrations/20201021190539 @@ -0,0 +1 @@ +1d0689b5182ac391473075aeabb0e341fb8634dbf0aa87dbb6d48cc0e61d2ada
\ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index d313018b4e6..c08fc55fef0 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -9297,11 +9297,16 @@ CREATE TABLE application_settings ( encrypted_ci_jwt_signing_key text, encrypted_ci_jwt_signing_key_iv text, container_registry_expiration_policies_worker_capacity integer DEFAULT 0 NOT NULL, + secret_detection_token_revocation_enabled boolean DEFAULT false NOT NULL, + secret_detection_token_revocation_url text, + encrypted_secret_detection_token_revocation_token text, + encrypted_secret_detection_token_revocation_token_iv text, CONSTRAINT app_settings_registry_exp_policies_worker_capacity_positive CHECK ((container_registry_expiration_policies_worker_capacity >= 0)), CONSTRAINT check_2dba05b802 CHECK ((char_length(gitpod_url) <= 255)), CONSTRAINT check_51700b31b5 CHECK ((char_length(default_branch_name) <= 255)), CONSTRAINT check_57123c9593 CHECK ((char_length(help_page_documentation_base_url) <= 255)), CONSTRAINT check_85a39b68ff CHECK ((char_length(encrypted_ci_jwt_signing_key_iv) <= 255)), + CONSTRAINT check_9a719834eb CHECK ((char_length(secret_detection_token_revocation_url) <= 255)), CONSTRAINT check_9c6c447a13 CHECK ((char_length(maintenance_mode_message) <= 255)), CONSTRAINT check_d03919528d CHECK ((char_length(container_registry_vendor) <= 255)), CONSTRAINT check_d820146492 CHECK ((char_length(spam_check_endpoint_url) <= 255)), |