Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-03-28 18:08:36 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-03-28 18:08:36 +0300
commitee7db70e1185876e97eca97ce8efabfc64c360b9 (patch)
tree4c09297635be43c0189a2a85dd2a38d5f72bc523 /db/migrate/20230323120601_create_dora_performance_scores.rb
parent3fa33c82f9c49f4b53ddcf017fe77f1bff48a460 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20230323120601_create_dora_performance_scores.rb')
-rw-r--r--db/migrate/20230323120601_create_dora_performance_scores.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20230323120601_create_dora_performance_scores.rb b/db/migrate/20230323120601_create_dora_performance_scores.rb
new file mode 100644
index 00000000000..2c4304fedb6
--- /dev/null
+++ b/db/migrate/20230323120601_create_dora_performance_scores.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+class CreateDoraPerformanceScores < Gitlab::Database::Migration[2.1]
+ def change
+ create_table :dora_performance_scores do |t|
+ t.references :project, null: false, foreign_key: { on_delete: :cascade }, index: false
+ t.date :date, null: false
+ t.integer :deployment_frequency, limit: 2
+ t.integer :lead_time_for_changes, limit: 2
+ t.integer :time_to_restore_service, limit: 2
+ t.integer :change_failure_rate, limit: 2
+
+ t.index [:project_id, :date], unique: true
+ end
+ end
+end