From 8bb66ea7e1b00a3b1702e5747ea3a1d332fb11f5 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 3 Feb 2021 06:10:04 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- ...asset_proxy_whitelist_on_application_settings.rb | 21 +++++++++++++++++++++ ...roxy_whitelist_rename_on_application_settings.rb | 21 +++++++++++++++++++++ db/schema_migrations/20210105052034 | 1 + db/schema_migrations/20210105052229 | 1 + db/structure.sql | 2 +- 5 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20210105052034_rename_asset_proxy_whitelist_on_application_settings.rb create mode 100644 db/post_migrate/20210105052229_clean_up_asset_proxy_whitelist_rename_on_application_settings.rb create mode 100644 db/schema_migrations/20210105052034 create mode 100644 db/schema_migrations/20210105052229 (limited to 'db') diff --git a/db/migrate/20210105052034_rename_asset_proxy_whitelist_on_application_settings.rb b/db/migrate/20210105052034_rename_asset_proxy_whitelist_on_application_settings.rb new file mode 100644 index 00000000000..cdfbd368070 --- /dev/null +++ b/db/migrate/20210105052034_rename_asset_proxy_whitelist_on_application_settings.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +class RenameAssetProxyWhitelistOnApplicationSettings < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers::V2 + + DOWNTIME = false + + disable_ddl_transaction! + + def up + rename_column_concurrently :application_settings, + :asset_proxy_whitelist, + :asset_proxy_allowlist + end + + def down + undo_rename_column_concurrently :application_settings, + :asset_proxy_whitelist, + :asset_proxy_allowlist + end +end diff --git a/db/post_migrate/20210105052229_clean_up_asset_proxy_whitelist_rename_on_application_settings.rb b/db/post_migrate/20210105052229_clean_up_asset_proxy_whitelist_rename_on_application_settings.rb new file mode 100644 index 00000000000..8f6d312ae5e --- /dev/null +++ b/db/post_migrate/20210105052229_clean_up_asset_proxy_whitelist_rename_on_application_settings.rb @@ -0,0 +1,21 @@ +# frozen_string_literal: true + +class CleanUpAssetProxyWhitelistRenameOnApplicationSettings < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers::V2 + + DOWNTIME = false + + disable_ddl_transaction! + + def up + cleanup_concurrent_column_rename :application_settings, + :asset_proxy_whitelist, + :asset_proxy_allowlist + end + + def down + undo_cleanup_concurrent_column_rename :application_settings, + :asset_proxy_whitelist, + :asset_proxy_allowlist + end +end diff --git a/db/schema_migrations/20210105052034 b/db/schema_migrations/20210105052034 new file mode 100644 index 00000000000..d2c1eacddf6 --- /dev/null +++ b/db/schema_migrations/20210105052034 @@ -0,0 +1 @@ +4eef64fb237f783cdb07e012356d48a4ec9afc349721de1c53cf3def95e83858 \ No newline at end of file diff --git a/db/schema_migrations/20210105052229 b/db/schema_migrations/20210105052229 new file mode 100644 index 00000000000..19b7f359482 --- /dev/null +++ b/db/schema_migrations/20210105052229 @@ -0,0 +1 @@ +ef994f0c65154825906fb0952b9b3073f4cb0692f01c90280edf06a4ea2ec339 \ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index ddf6105bcd6..412e3cb6840 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -9293,7 +9293,6 @@ CREATE TABLE application_settings ( instance_administration_project_id bigint, asset_proxy_enabled boolean DEFAULT false NOT NULL, asset_proxy_url character varying, - asset_proxy_whitelist text, encrypted_asset_proxy_secret_key text, encrypted_asset_proxy_secret_key_iv character varying, static_objects_external_storage_url character varying(255), @@ -9412,6 +9411,7 @@ CREATE TABLE application_settings ( container_registry_cleanup_tags_service_max_list_size integer DEFAULT 200 NOT NULL, enforce_ssh_key_expiration boolean DEFAULT false NOT NULL, git_two_factor_session_expiry integer DEFAULT 15 NOT NULL, + asset_proxy_allowlist text, CONSTRAINT app_settings_container_reg_cleanup_tags_max_list_size_positive CHECK ((container_registry_cleanup_tags_service_max_list_size >= 0)), CONSTRAINT app_settings_registry_exp_policies_worker_capacity_positive CHECK ((container_registry_expiration_policies_worker_capacity >= 0)), CONSTRAINT check_17d9558205 CHECK ((char_length((kroki_url)::text) <= 1024)), -- cgit v1.2.3