diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-08 00:08:31 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-08 00:08:31 +0300 |
commit | d66cbbc11b474dd517564399ae02b26b8f0aac1a (patch) | |
tree | 2142232cb759d01eb0249f87dda8220a2ec56098 /db | |
parent | 6d36b38d4d2901c244a0f8bdc4e36549ad821138 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20230407164616_add_code_suggestions_to_namespace_settings.rb | 9 | ||||
-rw-r--r-- | db/schema_migrations/20230407164616 | 1 | ||||
-rw-r--r-- | db/structure.sql | 1 |
3 files changed, 11 insertions, 0 deletions
diff --git a/db/migrate/20230407164616_add_code_suggestions_to_namespace_settings.rb b/db/migrate/20230407164616_add_code_suggestions_to_namespace_settings.rb new file mode 100644 index 00000000000..ce500fec2f0 --- /dev/null +++ b/db/migrate/20230407164616_add_code_suggestions_to_namespace_settings.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class AddCodeSuggestionsToNamespaceSettings < Gitlab::Database::Migration[2.1] + enable_lock_retries! + + def change + add_column :namespace_settings, :code_suggestions, :boolean, default: false, null: false + end +end diff --git a/db/schema_migrations/20230407164616 b/db/schema_migrations/20230407164616 new file mode 100644 index 00000000000..94a275ef9c2 --- /dev/null +++ b/db/schema_migrations/20230407164616 @@ -0,0 +1 @@ +ffc795945693f4856bd10224788ceb8305227ec296223c450af75a26a11f4811
\ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index ff48cb12b75..cb57029f218 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -18662,6 +18662,7 @@ CREATE TABLE namespace_settings ( allow_runner_registration_token boolean DEFAULT true NOT NULL, unique_project_download_limit_alertlist integer[] DEFAULT '{}'::integer[] NOT NULL, emails_enabled boolean DEFAULT true NOT NULL, + code_suggestions boolean DEFAULT false NOT NULL, CONSTRAINT check_0ba93c78c7 CHECK ((char_length(default_branch_name) <= 255)), CONSTRAINT namespace_settings_unique_project_download_limit_alertlist_size CHECK ((cardinality(unique_project_download_limit_alertlist) <= 100)), CONSTRAINT namespace_settings_unique_project_download_limit_allowlist_size CHECK ((cardinality(unique_project_download_limit_allowlist) <= 100)) |