diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-04 18:09:30 +0000 |
---|---|---|
committer | nao.hashizume <nhashizume@gitlab.com> | 2022-07-04 12:42:07 -0700 |
commit | f712a0c6de61c94f48c12a25f0cdb1db6bd51c94 (patch) | |
tree | 177ced5ef7f03cd1f76e44a6f56c7cc281d06ffc /db | |
parent | 0af8d072b36d81d60ad817f1bda0cfc35615096e (diff) | |
download | gitlab-ce-nao-test-foss-failure.tar.gz |
Add latest changes from gitlab-org/gitlab@masternao-test-foss-failure
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20220613054349_add_unique_project_download_limit_settings_to_namespace_settings.rb | 12 | ||||
-rw-r--r-- | db/schema_migrations/20220613054349 | 1 | ||||
-rw-r--r-- | db/structure.sql | 2 |
3 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20220613054349_add_unique_project_download_limit_settings_to_namespace_settings.rb b/db/migrate/20220613054349_add_unique_project_download_limit_settings_to_namespace_settings.rb new file mode 100644 index 00000000000..7e821cb17a2 --- /dev/null +++ b/db/migrate/20220613054349_add_unique_project_download_limit_settings_to_namespace_settings.rb @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +class AddUniqueProjectDownloadLimitSettingsToNamespaceSettings < Gitlab::Database::Migration[2.0] + enable_lock_retries! + + def change + add_column :namespace_settings, :unique_project_download_limit, :smallint, + default: 0, null: false + add_column :namespace_settings, :unique_project_download_limit_interval_in_seconds, :integer, + default: 0, null: false + end +end diff --git a/db/schema_migrations/20220613054349 b/db/schema_migrations/20220613054349 new file mode 100644 index 00000000000..1c3806a80c8 --- /dev/null +++ b/db/schema_migrations/20220613054349 @@ -0,0 +1 @@ +4c3e4852614dd1a59d63809c40417887794bcbbcf8d3ea3a96f8846e2bd5f795
\ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index f697bacdfc5..2013a434bab 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -17550,6 +17550,8 @@ CREATE TABLE namespace_settings ( project_runner_token_expiration_interval integer, exclude_from_free_user_cap boolean DEFAULT false NOT NULL, enabled_git_access_protocol smallint DEFAULT 0 NOT NULL, + unique_project_download_limit smallint DEFAULT 0 NOT NULL, + unique_project_download_limit_interval_in_seconds integer DEFAULT 0 NOT NULL, CONSTRAINT check_0ba93c78c7 CHECK ((char_length(default_branch_name) <= 255)) ); |