Commit c8dc1655 authored by Mayra Cabrera's avatar Mayra Cabrera

Merge branch '351296-remove-package-setting' into 'master'

Remove deprecated package application setting

See merge request gitlab-org/gitlab!80842
parents aaceef09 e3e1cdd6
# frozen_string_literal: true
class RemovePackageFilesLimitFromApplicationSettings < Gitlab::Database::Migration[1.0]
disable_ddl_transaction!
def up
return unless column_exists?(:application_settings, :max_package_files_for_package_destruction)
remove_column :application_settings, :max_package_files_for_package_destruction, :smallint
end
def down
add_column :application_settings, :max_package_files_for_package_destruction, :smallint, default: 100, null: false
add_check_constraint :application_settings,
'max_package_files_for_package_destruction > 0',
'app_settings_max_package_files_for_package_destruction_positive'
end
end
481bc7b167ddf46bd11322e4458e48de10483bf34d0e393f7e76a3572c28e09f
\ No newline at end of file
......@@ -11243,7 +11243,6 @@ CREATE TABLE application_settings (
container_registry_import_max_step_duration integer DEFAULT 300 NOT NULL,
container_registry_import_target_plan text DEFAULT 'free'::text NOT NULL,
container_registry_import_created_before timestamp with time zone DEFAULT '2022-01-23 00:00:00+00'::timestamp with time zone NOT NULL,
max_package_files_for_package_destruction smallint DEFAULT 100 NOT NULL,
runner_token_expiration_interval integer,
group_runner_token_expiration_interval integer,
project_runner_token_expiration_interval integer,
......@@ -11254,7 +11253,6 @@ CREATE TABLE application_settings (
CONSTRAINT app_settings_container_reg_cleanup_tags_max_list_size_positive CHECK ((container_registry_cleanup_tags_service_max_list_size >= 0)),
CONSTRAINT app_settings_dep_proxy_ttl_policies_worker_capacity_positive CHECK ((dependency_proxy_ttl_group_policy_worker_capacity >= 0)),
CONSTRAINT app_settings_ext_pipeline_validation_service_url_text_limit CHECK ((char_length(external_pipeline_validation_service_url) <= 255)),
CONSTRAINT app_settings_max_package_files_for_package_destruction_positive CHECK ((max_package_files_for_package_destruction > 0)),
CONSTRAINT app_settings_p_cleanup_package_file_worker_capacity_positive CHECK ((packages_cleanup_package_file_worker_capacity >= 0)),
CONSTRAINT app_settings_registry_exp_policies_worker_capacity_positive CHECK ((container_registry_expiration_policies_worker_capacity >= 0)),
CONSTRAINT app_settings_yaml_max_depth_positive CHECK ((max_yaml_depth > 0)),
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