diff --git a/db/migrate/20220705145349_add_project_import_level_to_namespace_settings.rb b/db/migrate/20220705145349_add_project_import_level_to_namespace_settings.rb new file mode 100644 index 0000000000000000000000000000000000000000..e46f0221782e4f633355c10a22b45d3a179513ac --- /dev/null +++ b/db/migrate/20220705145349_add_project_import_level_to_namespace_settings.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class AddProjectImportLevelToNamespaceSettings < Gitlab::Database::Migration[2.0] + enable_lock_retries! + + def change + add_column :namespace_settings, :project_import_level, :smallint, default: 0, null: false + end +end diff --git a/db/schema_migrations/20220705145349 b/db/schema_migrations/20220705145349 new file mode 100644 index 0000000000000000000000000000000000000000..6c309d401db8906b024ab4159ae68ba891905078 --- /dev/null +++ b/db/schema_migrations/20220705145349 @@ -0,0 +1 @@ +7f5288a47ce5d548bf47fbcd107e31f5448ec1d730ce5b13a760c155c50b44fb \ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index fb278f182b78ce829baa6fcf05100f496902ad07..64640eb098db6cc3acc45eb9e3a0b8fe37fadfe8 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -17554,6 +17554,7 @@ CREATE TABLE namespace_settings ( 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, + project_import_level smallint DEFAULT 0 NOT NULL, CONSTRAINT check_0ba93c78c7 CHECK ((char_length(default_branch_name) <= 255)) );