diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-02 18:09:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-02 18:09:06 +0300 |
commit | dab865db1e85e2fc3dd29dae8dc6b8e11b1ba3f7 (patch) | |
tree | 12a383ef1779b38c36d170ee5a6fe90585985f0f /db | |
parent | bdf5d637dab13620c56063c628274746182196ad (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20210126030249_add_security_dashboard_access_level_into_project_features.rb | 20 | ||||
-rw-r--r-- | db/schema_migrations/20210126030249 | 1 | ||||
-rw-r--r-- | db/structure.sql | 3 |
3 files changed, 23 insertions, 1 deletions
diff --git a/db/migrate/20210126030249_add_security_dashboard_access_level_into_project_features.rb b/db/migrate/20210126030249_add_security_dashboard_access_level_into_project_features.rb new file mode 100644 index 00000000000..cd325747282 --- /dev/null +++ b/db/migrate/20210126030249_add_security_dashboard_access_level_into_project_features.rb @@ -0,0 +1,20 @@ +# frozen_string_literal: true + +class AddSecurityDashboardAccessLevelIntoProjectFeatures < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + PRIVATE_ACCESS_LEVEL = 10 + + def up + with_lock_retries do + add_column :project_features, :security_and_compliance_access_level, :integer, default: PRIVATE_ACCESS_LEVEL, null: false + end + end + + def down + with_lock_retries do + remove_column :project_features, :security_and_compliance_access_level + end + end +end diff --git a/db/schema_migrations/20210126030249 b/db/schema_migrations/20210126030249 new file mode 100644 index 00000000000..068f5eeb9c5 --- /dev/null +++ b/db/schema_migrations/20210126030249 @@ -0,0 +1 @@ +b5c219d1b1443ddf482f26d8280a1c7318456affce3ad57a082eb8f9efc32206
\ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index 37316252119..ce7b51d067c 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -15837,7 +15837,8 @@ CREATE TABLE project_features ( metrics_dashboard_access_level integer, requirements_access_level integer DEFAULT 20 NOT NULL, operations_access_level integer DEFAULT 20 NOT NULL, - analytics_access_level integer DEFAULT 20 NOT NULL + analytics_access_level integer DEFAULT 20 NOT NULL, + security_and_compliance_access_level integer DEFAULT 10 NOT NULL ); CREATE SEQUENCE project_features_id_seq |